07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

3.6 Binary Operator Tokens<br />

3.6 Binary Operator Tokens<br />

Binary operators perform an operation with the two topmost operands from stack. <strong>The</strong> tokens do not contain any<br />

additional data.<br />

3.6.1 tAdd (03 H )<br />

Addition operator. Adds the operands. Operand class: value.<br />

Token tAdd, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 03 H<br />

Example: 3+2 returns 5.<br />

3.6.2 tSub (04 H )<br />

Subtraction operator. Subtracts the top operand from the second-to-top operand. Operand class: value.<br />

Token tSub, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 04 H<br />

Example: 3-2 returns 1.<br />

3.6.3 tMul (05 H )<br />

Multiplication operator. Multiplicates the operands. Operand class: value.<br />

Token tMul, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 05 H<br />

Example: 3*2 returns 6.<br />

3.6.4 tDiv (06 H )<br />

Division operator. Divides the second-to-top operand by the top operand. Operand class: value.<br />

Token tDiv, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 06 H<br />

Example: 3/2 returns 1.5.<br />

45

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

Saved successfully!

Ooh no, something went wrong!