I may be doing something silly, but... this code: my $w= (sequence 10)/4; print $w,"\n"; print floor($w) ,"\n"; print ceil ($w) ,"\n"; print rint ($w) ,"\n";
outputs: [0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25] [0 0 0 0 1 1 1 1 2 2] [0 1 1 1 1 2 2 2 2 3] [6015 6015 6015 6015 6015 6015 6015 6015 6015 6015] WTF? Am I misunderstanding the rint() function ? I gives me 6015 always! Hernán González Buenos Aires, Argentina http://hjg.com.ar/ _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
