Hi, I have a variable of type double, and I need to get an exponent from this variable to another variable.
double a = 123.45;
E = ???(a); //in that case exponent (E) will be -2 (12345*10-2)(I hope so...)
and also somehow get effective numbers to other variable (long N = ???(a)) //here it wil be 12345 (or maybe use some other type, or storage process if type long isn't big enaugh)
And the most important - it needs to be very, VERY fast. I want to use it in a special sorting algorythm, it work quite well for integer values (it sorts much more faster than quick sort),but for real numbers it needs a little different architecture. So, please help me someone.