in reply to Re: Grouping of 2D arrays
in thread Grouping of 2D arrays

$product{PC}{Spare} = { count=>2, sum => 37,2}

Doesn't this give an "Odd number of elements..." warning? Maybe something like
    $product{PC}{Spare} = { count=>2, sum => [37, 2] };


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^3: Grouping of 2D arrays
by LanX (Saint) on Apr 20, 2017 at 15:17 UTC
    Probably, (for cultural reasons I don't wonder about a comma as fraction separator).

    But as shmem already said, converting to cents is the way to go to avoid rounding errors.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      ... cents ...

      Oh,  37,2 uses the perverse European decimal point! The penny drops...


      Give a man a fish:  <%-{-{-{-<