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

Re^3: How to calculate the sum of columns to be equal to 100?

by Athanasius (Archbishop)
on Aug 15, 2013 at 15:33 UTC ( [id://1049614]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     1:03 >perl -wE "printf qq[%9f\t%.0f\t%2.0f\n], ($_ + 0.5) x 3 for 0 .
    +. 10;"
     0.500000       0        1
    ...
     1:03 >perl -v
    
    This is perl 5, version 18, subversion 0 (v5.18.0) built for MSWin32-x
    +86-multi-thread-64int
    
  2. or download this
     1:29 >perl -wE "printf qq[%21.18f\t%.1f\t%4.1f\n], ($_ + 0.05) x 3 fo
    +r 0 .. 10;"
     0.050000000000000003   0.1      0.1
    ...
    10.050000000000001000   10.1    10.1
    
     1:29 >
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-19 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found