100 of 307
ZBasic System Library 90 ZX Microcontroller Family FixUI Type Function returning UnsignedInteger Invocation FixUI(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 16 bits of that value is returned. The result isn’t particularly useful if the provided Single value is outside the range 0 to 65535, inclusive. Example Dim ui as UnsignedInteger ui = FixUI(100.5) ' result is 100