Fround()
Fround() rounds to the next whole number away from zero (bankers' rounding).
Syntax: result = Fround( value as single )
Example:
dim a as single a=100.5 a = Fround(a) ' output: 101.0 a=-100.5 a = Fround(a) ' output: -101.0
en:fround
Fround() rounds to the next whole number away from zero (bankers' rounding).
Syntax: result = Fround( value as single )
Example:
dim a as single a=100.5 a = Fround(a) ' output: 101.0 a=-100.5 a = Fround(a) ' output: -101.0