I have similar trouble in the past. What do I do: Before StrToFloat I
call a function that replaces the comma by decimal point.
Probably there is a better solution. We'll see it now.
Best regards (with God on our side)
Ricardo
At 16:33 3/8/2006, you wrote:
2006/8/3, Alexandre Leclerc <[EMAIL PROTECTED]>:
Hi all,
I use FloatToStr and it uses local settings for the formating of the
number. But I would like a very crude machine compatible number... ie:
'1,23$ => 1.23' or again '1,234,222.12 => 1234222.12'
In fact (I want to display the problem very simply):
s := FloatToStr(123.456);
//s is now '123,456' with my local settings
e := StrToFloat(s); //this will fail because of the coma; but this is
my local setting!!!
So I want to use only '.' separators...
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives