X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fform%2Fround_amount.t;h=18553c0f487ba79bf8cb6527be7f88e4fc5c16f1;hb=577042c61c5e1fffb8747079b4f9826e51532ee8;hp=d9c8edbb776d29b66325f735a2c1b7b343f61cab;hpb=ed531c37b5bfda999e40904fe5b7fb248ad9e3a3;p=kivitendo-erp.git diff --git a/t/form/round_amount.t b/t/form/round_amount.t index d9c8edbb7..18553c0f4 100644 --- a/t/form/round_amount.t +++ b/t/form/round_amount.t @@ -57,6 +57,8 @@ is($::form->round_amount(198.90 * 0.75, 2), '149.18', '198.90 * 0.75 @ 2'); is($::form->round_amount(198.90 * 0.75, 1), '149.2', '198.90 * 0.75 @ 1'); is($::form->round_amount(198.90 * 0.75, 0), '149', '198.90 * 0.75 @ 0'); +is($::form->round_amount(19610.975, 2), '19610.98', '19610.975 @ 2'); + # Negative values is($::form->round_amount(-1.05, 2), '-1.05', '-1.05 @ 2'); is($::form->round_amount(-1.05, 1), '-1.1', '-1.05 @ 1');