Hi,

I am writing a C program that will allow me to determine the maximum number of digits that a value can have to be within the range 0..m.

for example:

if m=23

max number of digits =1

Actual range 0..9

if m=379

max number of digits =2

Actual range 0..99

if m=453638923

max number of digits =8

Actual range 0..99999999

where 9 is a digit not a value...

firstly I dont want code but could someone explain the above theory as I just dont get it....