![]() ZBasic System Library
124
ZBasic Microcontrollers
Type
Function returning UnsignedLong
Invocation
FixUL(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 isnt particularly useful if the provided Single value is outside the range 0 to
4,294,967,295, inclusive.
Example
Dim ul as UnsignedLong
ul = FixUL(100.5)
' result is 100
|