truncf.c

Libc implementation of truncf

Author

Marcel Sondaar

License

Public Domain

Summary

Functions

truncf

float truncf(float x)

gets and returns the integer part of x

works only on systems that use ieee float, since it uses its binary representation

float truncf(float x)
gets and returns the integer part of x