percent( decimal )
Cast the [decimal] value as a [percent] type. This example shows the difference in display between various values cast both as decimal and as percent.
Code
var( myValues = array( .02, .135, 2.5, .004, .006 ) )
'Decimal\t\t%\n'
with v in $myValues
do => {^
local( p = percent(#v) )
#v+'\t\t'+#p+'\n'
^}
Result
Decimal % 0.020000 2% 0.135000 14% 2.500000 250% 0.004000 0% 0.006000 1%
Cast the [decimal] value as a [percent] type. This example shows the difference in display between various values cast both as decimal and as percent.
Code
var( myValues = array( .02, .135, 2.5, .004, .006 ) )
'Decimal\t\t%\n'
with v in $myValues
do => {^
local( p = percent(#v) )
#v+'\t'+#p+'\n'
^}
Result
Decimal % 0.020000 2% 0.135000 14% 2.500000 250% 0.004000 0% 0.006000 1%
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
Recent Comments