Basic30 Language Reference
modsf3 Function

Return the remainder of  x divided by y.

Function modsf3(x as Single, y As Single) As Single

Requirements

  1. This function requires the link time library "libm.a".  It is a free download from the Microchip website.
  2. The flie <libs/math.bas> must be included in the Basic source to use this function.

Examples

#include <libs/math.bas>

Dim x,y,z as Single

x=20.5: y=2.0
z=modsf3(x,y)	' z is now 0.25

Also See: addsf3, subsf3, mulsf3, divsf3