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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode