srvblues00
Senior member
Ok, I have a varible, say temp, with a value of 28.92. and I have a variable, temp2, with a value of 17.65.
double temp = 28.92;
double temp2 = 17.65;
Here's the calculation i'm doing:
double temp3;
temp3 = (temp/temp2);
so now temp3 should == 1.6385
what i want to be able to do is get the 1.6385 separated into different parts like this:
double a = 1;
double b = 6385;
how can i do this? I'm a java newb, so try to keep it simple. In C++ i achieved this by using the floor() function. Is there something similar here in Java? Thanks!
double temp = 28.92;
double temp2 = 17.65;
Here's the calculation i'm doing:
double temp3;
temp3 = (temp/temp2);
so now temp3 should == 1.6385
what i want to be able to do is get the 1.6385 separated into different parts like this:
double a = 1;
double b = 6385;
how can i do this? I'm a java newb, so try to keep it simple. In C++ i achieved this by using the floor() function. Is there something similar here in Java? Thanks!