Lasso Soft Inc. > Home

[ Currency ]

Method

The [currency] method formats a number according to the preferences of the default [locale].

The method requires one parameter the decimal value to be formatted as currency. 

  • Syntax
  • Methods
  • Traits
currency( value )
Has methods:
Examples
  • Beginner

Output a decimal value as the locally formatted currency.

Use the [currency] method. This example shows how a decimal value is formatted in English Canada (the default locale for the documenter.)

Code

local ( myMoney = currency(103.05) )

#myMoney

Result

$103.05

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft