Hacker News new | ask | show | jobs
by foobarrio 1842 days ago
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.
1 comments

The article only presents a function operating on unsigned integers, it's not unreasonable to suggest that this is intended to do the same ;)