105 of 307
ZBasic System Library 95 ZX Microcontroller Family 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.