99 of 318
ZBasic System Library 89 ZX Microcontroller Family 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