FiberOPtics commented on a Page, Commas  -  Jan 04, 2006

There is an error in the description, where it says it works with atleast 50 numbers. Try this:

//echo -a $bytes(99999999999999999,b)

Result: 100,000,000,000,000,000

$bytes has trouble with rounding at 16 digits, and over 17 it start screwing up severly.

Try:

//echo -a $bytes(10000000000000000000000000,b)

Result:

10,000,000,000,000,001,000,000,000

See that 001 in the forth to last trio of digits?

That\'s why I made that $comma identifier, it gives support for an unlimited amount of numbers, as long as it\'s within the string too long limit.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.