Difference between revisions of "PERCENT()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to calculate percentage | Function to calculate percentage | ||
Line 12: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[ROUND()]], [[SET DECIMALS]] | + | [[ACOS()]], [[ASIN()]], [[ATAN()]], [[ATN2()]], [[CALCULATE]], [[COS()]], [[DTOR()]], [[LOG()]], [[LOG10()]], [[PI()]], [[ROUND()]], [[RTOD()]], [[SET DECIMALS]], [[SET FIXED]], [[SIN()]], [[SQRT()]], [[TAN()]] |
+ | |||
Line 21: | Line 18: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | ?percent(10,100) | + | ? percent(10,100) |
10.00 | 10.00 | ||
</code> | </code> | ||
Line 27: | Line 24: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital, Recital Server |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Numeric Data]] | ||
+ | [[Category:Numeric Data Functions]] |
Latest revision as of 17:35, 3 December 2009
Purpose
Function to calculate percentage
Syntax
PERCENT(<expN1>,<expN2>)
See Also
ACOS(), ASIN(), ATAN(), ATN2(), CALCULATE, COS(), DTOR(), LOG(), LOG10(), PI(), ROUND(), RTOD(), SET DECIMALS, SET FIXED, SIN(), SQRT(), TAN()
Description
The PERCENT() function calculates <expN1> as a percentage of <expN2>. The number of decimals returned is defined by the SET DECIMALS command.
Example
? percent(10,100) 10.00
Products
Recital, Recital Server