Page 134 of 346 Start Back Next End ZBasic System Library 122 ZBasic Microcontrollers Fraction Type Function returning Single Invocation Fraction(val) Parameter Method Type Description val ByVal Single The value from which the fractional part will be returned. Discussion This function returns the fractional portion of the supplied value. The sign of the returned value will be the same as that of the value provided. Example Dim frac as Single frac = Fraction(1.5) ' result is 0.5 frac = Fraction(-1.5) ' result is -0.5 Compatibility This function is not available in BasicX compatibility mode.