Decimal places

Tore Nilsen tore.nilsen at me.com
Sat Nov 14 12:35:55 EST 2015


This works for me:

on mouseUp
   set the numberFormat to 0.00
   put 2 + 0.5 into tNumber
   put tNumber into field 1
end mouseUp


Tore


> 14. nov. 2015 kl. 18.33 skrev Richmond <richmondmathewson at gmail.com>:
> 
> On 14/11/15 19:31, Tore Nilsen wrote:
>>> 14. nov. 2015 kl. 18.28 skrev Richmond <richmondmathewson at gmail.com>:
>>> 
>>> No, but I have felt stupid many times before :)
>> That makes two of us.
>> 
>> Tore
>> 
> But  set the numberFormat of fld "fff" to "#.##"
> 
> doesn't work . . .
> 
> Richmond.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list