Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: pretty print bytes

by grinder (Bishop)
on Mar 28, 2002 at 14:33 UTC ( #154979=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    -1 -> <1K
    0 -> 
    ...
    10000000000000 -> 9313G
    100000000000000 -> 93132G
    1000000000000000 -> 931323G
    
  2. or download this
    for my $amount( qw/-1 0 1 10 100 511 512 513 999 1000 1023 1024 1025
        10000    
    ...
    {
        print "$amount -> ", amount($amount), "\n";
    }
    
  3. or download this
    sub amount {
        my $num = shift;
    ...
        }
        return "$num$suffix[$offset]";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://154979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-01-24 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?