userNumberFormat
userNumberFormat(fmt: NumberFormat): String;
The userNumberFormat method of the Decimal primitive type returns a string containing the receiver in the number format specified in the fmt parameter. To define your numeric formats, use the Schema menu Format command from the Schema Browser.
When you use a format in a JADE method, prefix your user number format name with a dollar sign ($); for example, userNumberFormat($MyNumber).
You can use the
If you do not define the
The code fragment in the following example shows the use of the userNumberFormat method.
if totalWorth = 0 then tblPortfolio.text := "0.00"; else tblPortfolio.text := (portfolio.myCompany.currentPrice * portfolio.shares.Decimal * Percent / totalWorth).Decimal.userNumberFormat($Percent); endif;