C# Maths function (...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] C# Maths function (geek programming content)

1 Posts
1 Users
0 Reactions
48 Views
Posts: 0
Topic starter
 

In simple terms I want to find out the order of magnitude for a given number.

e.g.

1,000 = 3
100,000 = 5

On Windows 7 the built-in calculator (in scientific mode) has a log function so log(1000) = 3.

Does anyone know the equivalent function in C#. Brain fried trying to remember A level Maths...


 
Posted : 09/02/2011 5:06 pm