Thread: Swp updated.
View Single Post
Old 07-01-2007, 01:13 AM   #65
TerminX

TerminX's Avatar
Re: Swp updated.
Quote:
Originally Posted by ProAsm View Post
TerminX, how did you figure that out.
Yes you are 100% correct, I went and changed that to a comma and sure enough:
'1.0' is not a floating point value.
What does this mean, is he wrong or am I wrong or better still why would anyone want their decimal point to be a comma anyway.
I'll see if I can fix this somehow but the problem is the exception is thrown before it comes back to you so you dont get a chance to correct it.
Anyway thanks on the headsup on this.... one is never too old to learn
Well, I made an educated guess based on knowing lots of things and happened to be right.

In some countries, commas are used where we use decimal points, so my first guess was that that was probably the cause. Apparently, some of the functions you're using are taking this localization into account (probably has something to do with you mentioning you were reading the values as floats...). You need to either write your cfg files out using Windows-specific functions which take these localizations into account or you need to change your reading of floats to something which ignores them.
TerminX is offline