13.07.2015 Views

xlop-doc.pdf. - Mirror

xlop-doc.pdf. - Mirror

xlop-doc.pdf. - Mirror

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

+ 4 8 2 55 3 0 71 0 1 3 2source\opadd[carryadd=false]{4825}{5307}+1 1 14 8 2 55 3 0 71 0 1 3 2source\opadd[lastcarry]{4825}{5307}The deletezero parameter is also a boolean parameter. It indicatesif non-significant zeros must be deleted or not. Its default value is true.When this parameter is false, the operands and the result has the samenumber of digits. For that, <strong>xlop</strong> package adds non-significant zeros. Also,the non-significant zeros of operands are not removed.++1 1 11 2.3 4 2 75.2 7 7 31 7.6 21 1 10 1 2.3 4 2 70 0 5.2 7 7 30 1 7.6 2 0 0source\opadd{012.3427}{5.2773}\par\opadd[deletezero=false]{012.3427}{5.2773}This parameter has exactly the same rôle for inline mode than for displayedmode.2.8+1.2=402.8+1.2=04.0source\opadd[style=text]{02.8}{1.2}\par\opadd[style=text,deletezero=false]{02.8}{1.2}\par3.2 SubstractionSubstraction is made by \opsub macro. In displayed mode, the substractionshows only nonnegative numbers. For that, it shows an addition whenone operand is nonpositive.+12 4 57 23 1 7source\opsub{­245}{72}In a general way, the principle is to display the operation which allow tofind the result as you make it “by hand”. On the contrary, inline mode showsalways a substraction since you can now write nonpositive numbers.13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!