But '-' is in the @chars array.my $val = abs($num); do { push @ret, $chars[$val % $base]; $val = int($val / $base); } while $val; push @ret, '-' if $num < 0;
In reply to Re: Math::Base - arithmetics with baseX integers
by no_slogan
in thread Math::Base - arithmetics with baseX integers (updated)
by shmem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |