Wes Duxbury

Greenhorn
+ Follow
since Apr 19, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Wes Duxbury

The thing is i can't seem to import java.lang.math.floor, it says javadoc not found!

Good point about the title, didn't think of that! Too busy getting frustrated with this program!
18 years ago
This is what i have so far:

int cm = Integer.parseInt(txtCm.getText());
double answer = cm / 2.54;
double feet = answer / 12;

txtAnswer.setText("" + feet);

Now I'm completely stumped! That just shows feet, and as a really long number, e.g, 100cm comes out as 3.2808398950131235!!!

I need it to be 3ft 3inches.

I have tried using chatAt and Math.round but i keep getting the dreaded red wiggly line!
18 years ago
I need to convert cm into feet and inches!

I've tried everything and just cannot seem to get it to work. I can do cm to feet then cm to inches seperately but can't get it to work out the feet remainder inches.

Any help with this would be very much appreciated!

Thanks, Wes

[EJFH: Supplied new subject line (was "Urgent urgent help help please!")
[ April 19, 2005: Message edited by: Ernest Friedman-Hill ]
18 years ago