Thread Rechenfehler mit Perl ausgleichen (71 answers)
Opened by bianca at 2013-04-27 13:42

tonewheel
 2013-04-27 20:28
#167319 #167319
User since
2006-10-01
182 articles
BenutzerIn
[default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl -w
use strict;
use warnings;

my $a = 0.57;
my $b = 100;

my $c = sprintf("%0.0f", $a * $b);

print $c . "\n";

View full thread Rechenfehler mit Perl ausgleichen