Libc implementation of truncf
Marcel Sondaar
Public Domain
truncf.c | Libc implementation of truncf |
Functions | |
truncf | gets and returns the integer part of x |
works only on systems that use ieee float, since it uses its binary representation |
gets and returns the integer part of x
float truncf( float x )