John R Pierce <[EMAIL PROTECTED]> said this in message
<[EMAIL PROTECTED]>:

> > i need a preogram code to count number of digits in a
> > given number which is read randomly from key board.

> assuming Number is a positive integer...

>       Digits = ceil(log10((double)Number))

> (where ceil() is rounding up to the next larger integer)

er... why not 
Digits = Length((string)Number) ?

or is this too fiendishly complicated ?
Jason
_______________________________________________
Prime mailing list
[email protected]
http://hogranch.com/mailman/listinfo/prime

Reply via email to