16.02.2014 Views

Download - SoftMaker

Download - SoftMaker

Download - SoftMaker

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

In practice, this means that if you assign a value of 2.5 to variable A and set the<br />

number of decimal places to 0, it will be shown as 3, but if you multiply A by 2, the<br />

result shown will be 5, not 6.<br />

Therefore, TextMaker also comes with a function called ROUND for real rounding.<br />

It can be applied as in the following example:<br />

A = ROUND ( 2.5 ; 0 )<br />

The function’s arguments are the value to be rounded and the number of decimal<br />

places to which it is to be rounded, separated by a semicolon. In the example above<br />

the value of 3 is assigned to the variable A.<br />

You will find detailed information about all TextMaker’s computational functions<br />

in section “Formulas and functions” beginning on page 371.<br />

Updating calculations<br />

When you enter or edit a calculation with Insert > Calculation and then confirm<br />

with OK, TextMaker automatically updates all the calculations in the document.<br />

However, in certain situations the results of calculations can appear “outdated”. For<br />

example, if you paste from another document a segment of text containing variables<br />

that are also used in the current document, TextMaker inevitably displays false<br />

results on the screen.<br />

The command Tools > Update Fields (keyboard shortcut (F9)) is provided for such<br />

situations. When you invoke it, TextMaker updates all the calculations and fields in<br />

the document.<br />

Note: It is only necessary to use this command in the situations described above<br />

when you want to update the screen display of the calculations. Before printing a<br />

document, TextMaker updates all calculations and fields automatically. Text-<br />

Maker ensures that you will never print a document with results that are out of<br />

date.<br />

Manual TextMaker Calculations in the text 369

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

Saved successfully!

Ooh no, something went wrong!