[Decimal->SetFormat] specifies the format in which the decimal value will be output when cast to string or displayed to a visitor.
Options include specifying the character that will be used for the decimal point or thousands group separator, forcing the decimal to display in scientific notation, and options for padding the output.
[Decimal Value->(SetFormat:
-DecimalChar=Decimal Point Character,
-GroupChar=Thousands Separator Character,
-Precision=Number of Characters Precision,
-Scientific=Boolean,
-Padding=Number of Characters to Pad Output,
-PadChar=Padding Character,
-PadRight=Boolean]
Use the [Decimal->SetFormat] tag to set the precision of the value to 2 decimal places. Thousands grouping can be activated by setting -GroupChar to a comma.
[Variable: 'Dollar_Amount'=(Decimal:'1000000.0')]
[$Dollar_Amount->(SetFormat: -Precision=2, -GroupChar=',')]
$[Variable: 'Dollar_Amount']
$1,000,000.00
Tag Link | [Decimal->SetFormat] | Category | Math |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 7.0, Lasso 6.0, Lasso 5.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft