Convert the result of your math ops; not the input.
In reply to Re: Math after hex conversion by ww in thread Math after hex conversion by amudelkaa