Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Wrong calculations in for loop

by moritz (Cardinal)
on Aug 22, 2012 at 13:10 UTC ( #989026=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v6;
    my $zmax = 60;    # Maximum depth in your model
    ...
    loop (my $i=0; $i <= $zmax; $i = $i+$dz) {
        say $i;
    }
    
  2. or download this
    ...
    3.6
    ...
    59.9
    59.95
    60
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-11-27 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (178 votes), past polls