Start Back Next End
  
ZBasic System Library
119
ZBasic Microcontrollers
Fix
Type
Function returning Single
Invocation
Fix(arg)
Parameter
Method
Type
Description
arg
ByVal
Single
The value to be “fixed”.
Discussion
This function returns the Single representation of the integer that is nearest the supplied value, rounding
toward zero.
Example
Dim f as Single
f = Fix(1.5) 
' result is 1.0
f = Fix(-1.5)  
' result is -1.0
See Also
Previous page Top Next page