-
-
Save zoffixznet/d1679d9e4c443ac9fe67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ perl6 -MNumber::Denominate -e 'say denominate 4000, :set("info-1024")' | |
3 kibibytes and 928 bytes | |
$ perl6 -MNumber::Denominate -e 'say denominate 4000, :set("info-1024"), :1precision' | |
4 kibibytes | |
$ perl6 -MNumber::Denominate -e 'say denominate 4000, :units(KB => 1024, "B"), :1precision' | |
4 KBs | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment