Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
foobarrio
· 5y ago · 0 comments
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.
Comments
[–]
opheliate
5y ago
The article only presents a function operating on unsigned integers, it's not unreasonable to suggest that this is intended to do the same ;)