Created
February 1, 2025 13:54
-
-
Save smooker/c37158c06a28b3050d66c3bb80fabfcf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use bigint; | |
my $a1 = $ARGV[0]; | |
if ($a1 =~ m/0x/) { | |
$a1 = hex($a1); | |
} | |
printf("HEX: %64x\n", $a1); | |
printf("DEC: %64d\n", $a1); | |
printf("BIN: %0*b\n", 64, $a1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment