Message 1 of 5
Int() problem
Not applicable
11-30-2005
02:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i am writing code for convert inch to feet. In my code:
feet = Fix(InchesInput \ 12)
the code works fine, except when it comes 11'-11 1/2" (143.5 inches) or 9'-11 1/2" (119.5 inches) etc (as long as 11 1/2"), the result becomes
feet = Fix(119.5\12) = 10??? (instead of 9!!!)
feet = Fix(143.5\12) = 12??? (instead of 11!!!)
How come?? Any suggestion??
thanks,
feet = Fix(InchesInput \ 12)
the code works fine, except when it comes 11'-11 1/2" (143.5 inches) or 9'-11 1/2" (119.5 inches) etc (as long as 11 1/2"), the result becomes
feet = Fix(119.5\12) = 10??? (instead of 9!!!)
feet = Fix(143.5\12) = 12??? (instead of 11!!!)
How come?? Any suggestion??
thanks,