Hello not_japh, and welcome to the Monastery!
#! perl use strict; use warnings; use bignum; my $foo = 1_234_500_000_000_000_000_000_000.6789; my $bar = int $foo; my $baz = $foo - $bar; print 'baz = ', $baz, "\n";
Output:
baz = 0.6789
Often, the simplest solution is also the best. ;-)
Update: Added greeting.
Athanasius <°(((>< contra mundum
In reply to Re: bignum frustration
by Athanasius
in thread bignum frustration
by not_japh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |