lol
easy way i've found to truncate numbers in C++ like you do in PBASIC. declare a 'double' (probably works with 'float' too) variable which takes in the number, then just declare an 'int' variable, whcih then assumes the value of the double. like this...
Code:
double x;
int y;
x = 5.9;
y = x;
cout << y;
that would print out a 5. you will get a warning, but that's the best way i've found to truncate the numbers in C++. i'm sure there's some class that does it better, but i've yet to find it.