Thread Kaufm. Runden (34 answers)
Opened by mikdoe at 2009-07-06 16:35

pq
 2009-07-06 16:43
#122876 #122876
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
die doku sagt jedenfalls, dass es ein feature ist:
Quote
fround ( +$scale )

Preserves accuracy to $scale digits from the left (aka significant digits) and pads the rest with zeros. If the number is between 1 and -1, the significant digits count from the first non-zero after the '.'

mir fällt jetzt nur ein, eins hinzuaddieren, zu runden und wieder eins abzuziehen.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Kaufm. Runden