www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - FP math question

reply kris <foo bar.com> writes:
Does anyone know an efficient and accurate method of extracting or 
deriving a base10 exponent from a FP number?

- Kris
May 25 2006
parent reply "Bob W" <nospam aol.com> writes:
ex=std.math.floor(log10(n));



"kris" <foo bar.com> wrote in message news:e5591i$g60$1 digitaldaemon.com...
 Does anyone know an efficient and accurate method of extracting or 
 deriving a base10 exponent from a FP number?

 - Kris 

May 25 2006
parent kris <foo bar.com> writes:
thank(you);

Bob W wrote:
 ex=std.math.floor(log10(n));

May 25 2006