Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: perl floating number addition

by poolpi (Hermit)
on Jul 20, 2009 at 06:57 UTC ( #781545=note: print w/replies, xml ) Need Help??

in reply to perl floating number addition

May be of interest ;)

#!/usr/bin/perl use strict; use warnings; use Math::BigFloat; my $base = Math::BigFloat->new(q{895.3}); my $incr = Math::BigFloat->new(q{0.01}); while ( $base->bcmp(900) ) { print $base->bstr(), "\n"; $base->badd($incr); }


'Ebry haffa hoe hab im tik a bush'. Jamaican proverb

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://781545]
[1nickt]: Corion I assume you are talking about Retry? Attempt doesn;t offer callbacks and has a much simpler interface. (Also written by someone I trust...)
[perldigious]: I train for long portaging/rowing trips by carrying my kayak to the river about a half mile from my house 2-3 times a week depending on weather... but due to a lingering winter, I haven't had long to train this year.
[erix]: Ah, I found the link for my run: 6km (and 6km back)
[perldigious]: Also, made the unhappy discovery that the ticks have become active already this year... I really, really hate ticks.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2017-05-24 13:02 GMT
Find Nodes?
    Voting Booth?