---end ---bash-3.00# vi 2hex "2hex" 12 lines, 191 characters #!/usr/bin/perl $deca=hex("0x175"); $decb=hex("0x1aa"); print "0x175 hex is $deca in decimal\n"; print "0x1aa hex is $decb in decimal\n"; $diff = $decb - $deca; print "the difference is $diff\n";
In reply to Re: Subtract 2 hexadecimal numbers
by AlbinoSleestak
in thread Subtract 2 hexadecimal numbers
by samd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |