# Thread: Shift exponent and comma to match (normalize)

1. ## Shift exponent and comma to match (normalize)

How can I Normalize two float numbers

Suppose the input of users as this

1.98 x 10E 4 = 19800
21.22 x 10E5 = 2120000

But I need to set them as

0.19 x 10 E -5
and the second one must be 0 in the first digit and must be the same exponent
0.2122 x 10E-6 -> as this is greater than first I must move the coma of the first one

0.019 x 10 E -6
0.2122 x 10 E -6

I need to make this in a single function

2. You can try looking at this thread

or if that doesn't help, maybe this thread will

and, if all else fails, try

3. Very Funny.

4. He's trying to tell you in a very nice way....

... DO NOT CROSSPOST OR DOUBLEPOST.

I mean that in the nicest possible way

5. Did somebody answer on the other posts?

6. > Did somebody answer on the other posts?
Doesn't look like it - but not getting an answer is not an excuse to spam the board with the same question over and over, without showing any signs of actual progress.

Consider http://www.opengroup.org/onlinepubs/...xsh/frexp.html
And comparing the exponents of both floats (say -4 and -7)

7. Thanks