in reply to [Perl 6] Order-of-magnitude suffixes for big numbers

Assuming h stands for hours, your example would be more impressive if it actually did the right thing when it comes to units - and significant digits.

So, it should say 16k / 24h; should print 0.19 Hz (two significant digits, and a unit of 1/s aka Hz).

Replies are listed 'Best First'.
Re^2: [Perl 6] Order-of-magnitude suffixes for big numbers
by moritz (Cardinal) on May 09, 2010 at 19:16 UTC
    your example would be more impressive if

    Sure, there are always ways to make things more impressive, by adding lots of code. There's already such an example in the pugs repo, but I don't know how up to date it is, and if it works with any implementation today.