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         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to