Navigation bar
  Start Previous page
 89 of 283 
Next page End 84 85 86 87 88 89 90 91 92 93 94  

80
FixB
Type
Function returning Byte
Invocation
FixB(arg)
Parameter
Method
Type
Description
arg
ByVal
Single
The value to be changed to integral form.
Discussion
The supplied Single value is first converted to a signed 32-bit integer, rounding toward zero, and then
the low 8 bits of that value is returned.  The result isn’t particularly useful if the provided Single value is
negative or larger than 255.
Example
Dim b as Byte
b = FixB(100.5)
' result is 100
Previous page Top Next page