Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: incrementation loop fails?

by herveus (Parson)
on Sep 29, 2011 at 18:00 UTC ( #928635=note: print w/replies, xml ) Need Help??


in reply to Re: incrementation loop fails?
in thread incrementation loop fails?

Howdy!

That only works when the precision is 0.1; that cannot be assumed as it is user input. Using printf to limit the precision of the output is one way, but you have to be careful with your limits, based on the user's specified precision. One digit would not be helpful if the precision were 0.01, to haul out an obvious example.

yours,
Michael

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928635]
help
Chatterbox?
[runrig]: Total Eclipse
[runrig]: (of the Sun)
[runrig]: Is happening now...will get to about 70% where I am
[LanX]: enjoy :)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-08-21 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (324 votes). Check out past polls.

    Notices?