You get the result as an integer (= 0), but you treat it as a character (="0").$result2 = int(ord($dividend)/ord($divisor)); print sprintf("%02X ", ord($result2)) . "\n";
In reply to Re: hexadecimal division
by bart
in thread hexadecimal division
by holandes777
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |