Page 129 of 346 Start Back Next End ZBasic System Library 117 ZBasic Microcontrollers 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