If trailing zeros don't matter, use:
alltrim(str(-8.81,20,2))
>Aaargh... just found a MS KB article about it..
>
>I'm not going to have to Set Compatible On am I?
>
>
>>Hello all,
>>
>>I have found an irregularity with the transform command and wonder if anyone else can come up with a solution for it.. (I remember something about this in the past but without a BUTM search, I have to ask you nice Putm's)
>>
>>Try this in the command window..
>>
>>? Transform(-8.81)
>>? Transform(-8.82)
>>
>>These 2 lines give VERY different results on 2 win 95 machines here
>>VFP6 SP4
>>
>>Also could someone give this a try in VFP7 - maybe it will give me an excuse to upgrade!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)