Agnes, you can force it to 1 decimal with the format code instead of using set decimals. SEe the difference:
set decimals to 2
i=12.80
? TRANSFORM(i,'999999.9')
? TRANSFORM(i,'999999.99')
set decimals to 0
i=12.80
? TRANSFORM(i,'999999.9')
? TRANSFORM(i,'999999.99')
>Hi All,
>
>I used TRANSFORM to put a number to a string.
>
>The number ist to decimals. SET DECIMALS is 1
>
>if I do
>
>?TRANSFORM(12.75,'@R 99.99)
>
>
>the result is 12.80
>
>what do I miss?
>
>Agnes
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"