| ??? 07/20/02 13:03 Read: times |
#26051 - Conversion from ASCII to floating point |
I'm using a 4 * 3 keypad to enter numbers. But these numbers are meaningless if I cannot convert it into floating point values. For example, if I key in 123.45, how do I convert it into 32 bit format so that I can do multiplication and division? I was thinking of doing this:
1 x 100 + 2 * 10 + 3 * 1 + 4 * 0.1 etc Anybody has better ideas? Any help will be appreciated. Thanks! |



