View Single Post
Old Jan 17th, 2006, 6:49 AM   #1
JoeAvery
Newbie
 
Join Date: Jan 2006
Posts: 1
Rep Power: 0 JoeAvery is on a distinguished road
Decimal conventions

Hello,

I am working on a stock market analysis application with Deplhi 5 and I run into a problem with decimal conventions specified in Regional Settings. Normally, ASCII text stock data historical files have the following format:

Date,Open,HIgh,Low,Close,Volume (ex. 20060117, 40.05, 41.67, 39.58, 41.25, 234876)

When I try to manipulate (read, convert, etc.) those files and the Regional Settings are set to European conventions with the decimal being a comma, I get an error in my program "40.05 is not a valid floating point number".

Is there a way to deal with the regional settings in Delphi 5 so that decimal conventions are appropriately handled by the program?

Thanks in advance

Joe
JoeAvery is offline   Reply With Quote