FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
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
}
rtlib
math_frac.c
Generated on Thu Jan 23 2014 19:40:12 for FreeBASIC by
1.8.4