News for hackers. Stuff that matters.
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.
Re:Computing the number of digits of an integer even faster by opheliate on Friday June 04, 2021 @02:20PM (#27397010)
The article only presents a function operating on unsigned integers, it's not unreasonable to suggest that this is intended to do the same ;)