Thank you cherno but if I want to put '%' after my number, the problem still remain.Someone else has given me an other solution ( print &BASTVA_TTVA (...,...) edit '99.99C%') but I haven't tried yet 'cause I'm on other problem for the moment
See you later.
-----Message d'origine-----
De: Cherno Jagne [SMTP:ITSCJ@QE2-HSC.NS.CA]
Date: jeudi 25 novembre 1999 20:04
À: Multiple recipients of list SQR-USERS
Objet: Re: Edit mask
Philippe,
There IS an explanation:
Becuase of the 'C' in your format string, the value
returned from edit() is actually '5,50'. Notice the
comma character--that's what the 'C' does. Now
when the assignment is done to the number variable
#tva, the string '5,50' is converted to the value 5
(Try something like: let #a = '10,55').
Wouldn't something like:
print &BASTVA_TTVA (...,...) edit '99.99C'
do it for you?
Good Day,
Cherno Waka Jagne.
Halifax, N.S.
PS: It must be Thanksgiving in the US and a
holiday, so you'd probably have gotten more
responses.
>>> Philippe DAVID <Philippe.DAVID@GLENAT.COM> 11/25 11:53 AM >>>
Hello happy tax-payers
I've a problem
I got a numeric value in a row (&BASTVA_TTVA) and I want to print it
formatted with only 2 decimals, so I wrote this:
let #tva=edit(&BASTVA_TTVA,'99.99C')
let $text=to_char(#tva) ||'%'
print $text (,{XITVA3})
and I'm very surprised because the value in my row is 5.50000 and
#tva=5.00
Is there an explanation or have I some gremlins in my f..#*ñ $ú
computer
Thanks for all
Philippe DAVID
Editions GLENAT
6 rue Lt Chanaron
38000 GRENOBLE
33 (0)4 76 88 75 92