Troubles with inequality
J. Landman Gay
jacque at hyperactivesw.com
Wed Feb 4 17:44:55 EST 2015
On 2/4/2015 3:01 PM, Graham Samuel wrote:
> So really, if I want an uncomplicated string of characters derived
> from a number via setting the numberFormat and then doing a
> calculation, how do I get it?
You can turn it into a string by putting empty after it:
put 1.55555 into tVar -- number
set the numberformat to "0.00"
add 1 to tVar -- still a number
put tVar into fld 1 -- numberformat applied now, field contains a
string "2.55"
add 1 to tVar -- still a number, contains 3.55555
put empty after tVar -- numberformat applies, tVar is a string
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list