Okay, put format("$ %05.2f",-5.553) into msg gives $ -5.55
I am sure there is some formatting someone would want that can not be done with the format function, but most can and without spending the time to exhaustively test, I suspect that anything you can do with numberFormat you can do with format. On 4/6/2017 2:13 PM, hh via use-livecode wrote: > You forgot to give examples for Bob's original problem? > The negative numbers ... ;-) > >> Paul D. wrote: >>> put format("$%0.2f",tMoney) into msg >>> >>> for tMoney = 5.55, you get $5.55 >>> for tMoney = 5.33333, you get $5.33 >>> >>> want a space between the $, then use >>> put format("$ %0.2f",tMoney) into msg >>> >>> want a leading zero and minimum of 2 digits before the decimal point >>> put format("$ %05.2f",5.553) into msg > _______________________________________________ > 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 > _______________________________________________ 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