Did numberFormat Break?

Mike Bonner bonnmike at gmail.com
Thu Feb 15 12:37:34 EST 2018

If I recall what I read way back,  I think the numberrformat only applies
to containers other than variables.  If you were to put tpoextprice into
field "field" the numberformat should be applied correctly.

I think the reason for this is that numberformat can be used to add
non-number chars ($) but the number in the variable needs to remain a
number. Its only when its dropped somewhere that the changes are applied.

On Thu, Feb 15, 2018 at 10:20 AM, Bob Sneidar via use-livecode <
use-livecode at lists.runrev.com> wrote:

> I have this in a script:
> on mouseUp
>    set the numberFormat to "0.00"
>    put 1.00+1 into tpoextprice
>    breakpoint
> end mouseUp
> At this point tpoextprice is 2. Not mind you, 2.00, just 2.
> Either I am missing something (again) or else numberFormat is broken.
> Bob S
> _______________________________________________
> 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