use Math::BigInt; sub dec2bin{ my $i = new Math::BigInt shift; $i&&dec2bin($i/65536).sprintf"%016b",$i%65536; } print dec2bin('123 456 789 123 456 789');
In reply to Re: dec to bin conversion for large numbers
by I0
in thread dec to bin conversion for large numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |