Difference between revisions of "Documentation/How Tos/Calc: CURRENT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
Line 1: | Line 1: | ||
+ | {{DISPLAYTITLE:CURRENT funtion}} | ||
{{Documentation/CalcFunc InformationTOC | {{Documentation/CalcFunc InformationTOC | ||
|ShowPrevNext=block | |ShowPrevNext=block | ||
Line 27: | Line 28: | ||
=== Further information: === | === Further information: === | ||
− | : This function is best used only in simple situations. A more complex example: <tt>'''1 + 2*CURRENT()'''</tt> returns <tt>'''5'''</tt>, because although the <tt>'''1'''</tt> has been encountered as the formula is evaluated, it is ignored because evaluating the multiplication has precedence. The formula's value upto <tt>'''CURRENT()'''</tt> equals <tt>'''2'''</tt>. Thus <tt>''' 2*CURRENT()'''</tt> yields <tt>'''4'''</tt>, with the result: <tt>'''1 + 4'''</tt> equals <tt>'''5'''</tt>. However, the exact order of calculation in more complex cases should not be relied on. | + | : This function is best used only in simple situations. A more complex example: <tt>'''1 + 2*CURRENT()'''</tt> returns <tt>'''5'''</tt>, because although the <tt>'''1'''</tt> has been encountered as the formula is evaluated, it is ignored because evaluating the multiplication has precedence. The formula's value upto <tt>'''CURRENT()'''</tt> equals <tt>'''2'''</tt>. Thus, <tt>''' 2*CURRENT()'''</tt> yields <tt>'''4'''</tt>, with the result: <tt>'''1 + 4'''</tt> equals <tt>'''5'''</tt>. However, the exact order of calculation in more complex cases should not be relied on. |