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: 4347
Loc: New Jersey
I ran into a problem today where a script failed with the following logic:
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
If @KIX <> '4.66'
, but I'm concerned about other math operations.

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


Actually I am a Rocket Scientist! \:D

#213826 - 2020-02-23 01:45 PM Re: Making things work globally [Re: Glenn Barnas]
Robdutoit Offline

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.

Page 1 of 1 1

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

Who's Online
0 registered and 126 anonymous users online.
Newest Members
harry_hs, johnjorge, Onsitejim, nexup3000, Luis_Ballesteros
17727 Registered Users

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

Search the board with:
superb Board Search
or try with google: