trunc.c

Libc implementation of trunc

Author

Marcel Sondaar

License

Public Domain

Summary

Functions

trunc

double trunc(double x)

gets and returns the integer part of x

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

double trunc(double x)
gets and returns the integer part of x