Start Back Next End
  
ZBasic System Library
122
ZBasic Microcontrollers
FixL
Type
Function returning Long
Invocation
FixL(arg)
Parameter
Method
Type
Description
arg
ByVal
Single
The value to be changed to integral form.
Discussion
The supplied Single value is converted to a signed 32-bit integer, rounding toward zero, and that value
is returned.  The result isn’t particularly useful if the provided Single value is outside the range –
2,147,485,648 to 2,147,485,647, inclusive.
Example
Dim l as Long
l = FixL(-100.5)
' result is -100
Previous page Top Next page