Here is an attachment that deals with all the elementry arithmetic. It is written for a scenix chip but the algorithms are the same for any micro. Attachment converted: wonderland:sx_arith(1).pdf (PDF /CARO) (0000E8DC)