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