Thread
:
counting digits
View Single Post
Apr 10th, 2007, 10:57 AM
#
6
rwm
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power:
2
ok so this works:
(
Toggle Plain Text
)
//number of digits inline int num_digits(int num) { return ceil(log10(num)); }
//number of digits inline int num_digits(int num) { return ceil(log10(num)); }
but lots of warnings! :/
thanks guys!
rwm
View Public Profile
Find More Posts by rwm