View Single Post
Join Date: Nov 2008
Posts: 397
Reputation: StuXYZ is a glorious beacon of light StuXYZ is a glorious beacon of light StuXYZ is a glorious beacon of light StuXYZ is a glorious beacon of light StuXYZ is a glorious beacon of light StuXYZ is a glorious beacon of light 
Solved Threads: 72
StuXYZ StuXYZ is online now Online
Posting Whiz

Re: Help with Measurement converter

 
0
  #3
Nov 25th, 2008
The mistake is that you are using integers (the set 0,1,2,3 and -1 etc)
to represent floating point number.
int a=2*1.2; gives sets a to 2.

write
  1. double Meters;
  2. double Yards;
instead of the two int declarations.
Reply With Quote