Page 1 of 1 1
Topic Options
#213790 - 2020-01-06 05:12 PM Making things work globally
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4318
Loc: New Jersey
I ran into a problem today where a script failed with the following logic:
 Code:
If 1.0 * @KIX <> 4.66
The Kix32 was version 4.66. I determined that the country's decimal point was "," and not ".". This was kind of a surprise as I thought things generally worked internally and I only needed to deal with LOCALE-specific formatting during output.

When I ran a test script - "1,0 * @KIX" I get an error, but "1.0 * @KIX" returns "4" and not "4,66" or "4.66". I've switched my logic to
 Code:
If @KIX <> '4.66'
, but I'm concerned about other math operations.

I'd appreciate any insight on properly formulating expressions for international use.

Thanks,

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#213826 - 2020-02-23 01:45 PM Re: Making things work globally [Re: Glenn Barnas]
Robdutoit Offline
Hey THIS is FUN
***

Registered: 2012-03-27
Posts: 316
Loc: London, England
The problem with being a rocket scientist is that if you don't know the answer, nobody else will \:D

Hope you managed to find a solution to your problem.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 122 anonymous users online.
Newest Members
Onsitejim, nexup3000, Luis_Ballesteros, Young, marielia
17725 Registered Users

Generated in 0.028 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org