pgnelson307 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use Math::BigFloat; Math::BigFloat->accuracy(20); sub simulate_lifespan{ my $r = Math::BigFloat->new($_[0]); my $org_muv = Math::BigFloat->new($_[1]); my $org_muy = Math::BigFloat->new($_[2]); my $scaler = Math::BigFloat->new($_[3]); my $ext_death = Math::BigFloat->new($_[4]); my $lifetime_fitness = Math::BigFloat->new(0); my $log_lifetime_fitness = $lifetime_fitness->copy(); $log_lifetime_fitness ->blog(); my @return_array = ($time, $log_lifetime_fitness, $mean_v, $mean_y +); return \@return_array; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing a BigFloat number through a subroutine
by Marshall (Canon) on Jul 17, 2016 at 20:01 UTC | |
|
Re: Passing a BigFloat number through a subroutine
by stevieb (Canon) on Jul 17, 2016 at 18:49 UTC | |
|
Re: Passing a BigFloat number through a subroutine
by Anonymous Monk on Jul 17, 2016 at 20:01 UTC | |
|
Re: Passing a BigFloat number through a subroutine
by pgnelson307 (Initiate) on Jul 17, 2016 at 20:27 UTC | |
by Your Mother (Archbishop) on Jul 17, 2016 at 22:36 UTC |