I searched around and couldn\'t find the trunc function for C++. I know I can do this:
trunc
int main() { double a = 12.566789; cout <<
trunc is there, in :
#include #include int main() { std::cout << trunc(3.141516) << std::endl; }
I suppose you're looking for something else?