Cheers,use strict; use warnings; use Math::BigInt; my $x = Math::BigInt->new(17); my $y = 70 / $x; print $y, "\n"; $x = "$x.00"; #or: #$x = "$x"; $y = 70 / $x; print $y, "\n"; __END__ Outputs: 4 4.11764705882353
In reply to Re^7: All Calculations Done with One Variable Give Integer Answers
by syphilis
in thread All Calculations Done with One Variable Give Integer Answers
by HalNineThousand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |