Difference between revisions of "PERCENT()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Helen.george (Talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to calculate percentage | Function to calculate percentage | ||
− | |||
==Syntax== | ==Syntax== | ||
PERCENT(<expN1>,<expN2>) | PERCENT(<expN1>,<expN2>) | ||
− | |||
==See Also== | ==See Also== | ||
[[ACOS()]], [[ASIN()]], [[ATAN()]], [[ATN2()]], [[CALCULATE]], [[COS()]], [[DTOR()]], [[LOG()]], [[LOG10()]], [[PI()]], [[ROUND()]], [[RTOD()]], [[SET DECIMALS]], [[SET FIXED]], [[SIN()]], [[SQRT()]], [[TAN()]] | [[ACOS()]], [[ASIN()]], [[ATAN()]], [[ATN2()]], [[CALCULATE]], [[COS()]], [[DTOR()]], [[LOG()]], [[LOG10()]], [[PI()]], [[ROUND()]], [[RTOD()]], [[SET DECIMALS]], [[SET FIXED]], [[SIN()]], [[SQRT()]], [[TAN()]] | ||
− | |||
− | |||
==Description== | ==Description== | ||
The PERCENT() function calculates <expN1> as a percentage of <expN2>. The number of decimals returned is defined by the SET DECIMALS command. | The PERCENT() function calculates <expN1> as a percentage of <expN2>. The number of decimals returned is defined by the SET DECIMALS command. | ||
− | |||
==Example== | ==Example== | ||
Line 21: | Line 16: | ||
10.00 | 10.00 | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== | ||
− | + | Lianja, Lianja Server | |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Numeric Data Functions]] | [[Category:Numeric Data Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 09:08, 4 February 2013
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
Lianja, Lianja Server