programming-examples/perl/Datatype/Float value calculation.pl

9 lines
228 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use strict;
my $money = 105.6;
print "49518 money is ", (49_518/$money), " dollars\n";
print "360 money is ", ( 360/$money), " dollars\n";
print "30510 money is ", (30_510/$money), " dollars\n";