[EMAIL PROTECTED] asked:

> The above function extracts 287.472 which ends up as 287 in Depth
> 
> Any ideas why this may fail on a Spanish OS. 

It could be because Spanish (like many European counties) uses , (comma) as
the decimal seperator, and the numbers with . (dot) as a seperator get the
conversion code all confused. By default the connversion code uses
regionalised characters to recognise bits of the number being converted, and
having a "wrong" seperator certainly matches with what the output is, as the
StrToFloat simply works through the string until it gets to an unrecognised
character and them stops.

Cheers, Max.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to