I've got a double... say
double d = 25.342;
How can I get the 25 value? ( If it were -12.46 I'd like to get -13)
Thanks! Manuel
I've got a double... say
double d = 25.342;
How can I get the 25 value? ( If it were -12.46 I'd like to get -13)
Thanks! Manuel
int i = (int)floor(25.342);
Note this will convert 12.99999 to 12.
Ref: