Re:Computing the number of digits of an integer even faster
by foobarrio on Friday June 04, 2021 @01:36PM
(#27396312)
you need an ABS( ) in there no or else the negative sign gets counted? Also some languages will write really big numbers or really small numbers in engineering notation (eg 10,000,000 becomes 10e6) but that's typically only for floating point types.
[ Parent
| on HN ]