FreeBASIC  0.91.0
math_frac.c
Go to the documentation of this file.
1 /* frac( x ) = x - fix( x ) - returns the fractional part of a float */
2 
3 #include "fb.h"
4 
5 FBCALL float fb_FRACf( float x )
6 {
7  return x - fb_FIXSingle( x );
8 }
9 
10 FBCALL double fb_FRACd( double x )
11 {
12  return x - fb_FIXDouble( x );
13 }