Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users
Re: [interchange-bugs] [rt.icdevgroup.org #349] Vend::Util::round_to_frac_digits() simplification
 

Index | Next | Previous | View Flat


peter at pajamian

Mar 19, 2012, 3:38 PM


Views: 313
Permalink
Re: [interchange-bugs] [rt.icdevgroup.org #349] Vend::Util::round_to_frac_digits() simplification

CCing the userlist because I want Mike to see this.

On 20/03/12 04:47, Anonymous via RT wrote:
> round_to_frac_digits() produces ".00" when called with (0, 2). It
> also parses the integers incorrectly: in normal Perl "1." is a valid
> number, as is "+3", but "-" is not valid.
>
> Nearly all of the function logic can be replaced with:
>
> printf "%.*f", $digist, $num;

Agreed, except it needs to be sprintf.

Mike, is there any reason to not make this change?


Peter

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Subject User Time
Re: [interchange-bugs] [rt.icdevgroup.org #349] Vend::Util::round_to_frac_digits() simplification peter at pajamian Mar 19, 2012, 3:38 PM
    Re: [interchange-bugs] [rt.icdevgroup.org #349] Vend::Util::round_to_frac_digits() simplification mike at perusion Mar 19, 2012, 5:59 PM
        Re: [interchange-bugs] [rt.icdevgroup.org #349] Vend::Util::round_to_frac_digits() simplification peter at pajamian Mar 19, 2012, 7:04 PM
            Re: [interchange-bugs] [rt.icdevgroup.org #349] Vend::Util::round_to_frac_digits() simplification mike at perusion Mar 19, 2012, 7:22 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.