I want to find rounding functions. In VB60. The function can be fulfilled in the for example below
for example:
794.5 = 795
843.4 = 843
245.345 = 245
I used the function: Round(), Int(), Fix() but not.
Printable View
I want to find rounding functions. In VB60. The function can be fulfilled in the for example below
for example:
794.5 = 795
843.4 = 843
245.345 = 245
I used the function: Round(), Int(), Fix() but not.
How are the variables that store the numbers declared?
If they are declared as Long, the decimal portion will be rounded for you leaving only a whole number.