Negative Numbers and NumberFormat

hh hh at hyperhh.de
Thu Apr 6 14:13:27 EDT 2017


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




More information about the use-livecode mailing list