Difference between revisions of "PERCENT()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 21: Line 21:
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
?percent(10,100)
+
? percent(10,100)
 
     10.00
 
     10.00
 
</code>
 
</code>
Line 30: Line 30:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Numeric Data]]
 +
[[Category:Numeric Data Functions]]

Revision as of 09:11, 2 June 2009

Class

Numeric Data


Purpose

Function to calculate percentage


Syntax

PERCENT(<expN1>,<expN2>)


See Also

ROUND(), SET DECIMALS


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 Database Server, Recital Mirage Server, Recital Terminal Developer