basically I want to return the number of digits in the int -> values like this:
(int)1 => 1
(int)123 => 3
(int)12345678 => 8
I know nothing about C, so please bear with me. I know objective c, but I use ints and floats instead of NSNumbers. I realise I could convert the ints into objective c objects, but this seems faffy, and if I can do it with C I’ll know it for the future.
Thanks
use
Note that this doesnt work for negative numbers, you’ll have to use
which adds 1 for the minus sign, if
valueis negative.