You
made me discover an "interesting" feature with your query. It seems that the
truncation of decimals occurs with the VAL() function. It is what I
did
dim a a string
a=123.45678
print val(a) result>>> 123.457
print format$(val(a),"#.#####") result>>>123.457
dim i as float
i=123.45678
print format$(i,"#.#####") result >>> 123.45678
Any confirmation from the higher ones?
Jacques
Paris
e-mail
alternate
[EMAIL PROTECTED]
[EMAIL PROTECTED]
paris PC Consult (mainly MapInfo
app.)
www.total.net/~rparis/gisproducts.htm
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Giorgio Porta
Sent: November 26, 1999 3:51 AM
To: [EMAIL PROTECTED]
Subject: MI Problem with data typesHi to All,I would like to know, if anyone has ever used the decimal data type (for example Dim num As Decimal...)When trying to recover the number corresponding to the string in an edit text, using the Val() function i have this problem:Ex: num = 12345.6789 Val (num) = 12345.68How can i recover the effective num without loosing the decimals ?Thank you in advanced to allGiorgio PortaDOMINO Research S.r.l.Via Alserio 10 20159 MilanoTel +39 02 69006705e-mail [EMAIL PROTECTED]