I'm trying to find a way to do something similar but from dec to hex . Maybe you have an idea ?#!perl use strict; use Math::BigInt; sub HeX { my $n = shift; $n = '0' x (4 - (length($n) % 4)) . $n; my $m = Math::BigInt->new(0); while (my $o = substr($n, 0, 4, '')){ $m = $m * 65536 + hex $o; } $m; }
In reply to Re^6: Big Int to hex with 5.6
by ZlR
in thread Big Int to hex with 5.6
by ZlR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |