Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 74f245fb

Von Sven Schöling vor fast 10 Jahren hinzugefügt

  • ID 74f245fba8306d49caf19f9242f912912415068a
  • Vorgänger 5d244100
  • Nachfolger 0b8b2454

parse_amount: Bei amount undef sofort 0 zurückgeben.

Unterschiede anzeigen:

SL/Form.pm
sub round_amount {
my ($self, $amount, $places) = @_;
return 0 if !defined $amount;
# We use Perl's knowledge of string representation for
# rounding. First, convert the floating point number to a string
# with a high number of places. Then split the string on the decimal

Auch abrufbar als: Unified diff