Page 132 of 346 Start Back Next End ZBasic System Library 120 ZBasic Microcontrollers Floor Type Function returning Single Invocation Floor(arg) Parameter Method Type Description arg ByVal Single The value of which to compute the floor. Discussion This function returns a Single value that is equal to the largest integer that is less than or equal to the supplied value, effectively rounding down to the nearest integer. Example Dim flr as Single flr = Floor(1.5) ' result is 1.0 flr = Floor(-1.5) ' result is -2.0 Compatibility This function is not available in BasicX compatibility mode. See Also Ceiling, Fix