11-05-2022, 11:50 PM
"Fix" is a rounding function like CINT & INT. It always returns the integer part of the argument.- With Fix one can also determine the decimal part.
Read more books folks!
Read more books folks!
Code: (Select All)
Dim As Single a
Print Fix(23.67)
Print
Print Fix(-5.77)
Print
Print "----------------------"
Print
a = -27.007
Print a
a = Abs(a - Fix(a))
Print Using ".###"; a