Hi Stephen,

> But i have a small issue. Here in Denmark where i live we 
> dont use the . (dot) as decimal marker, rather we use the , (comma).
> 
> In most programs this switch is seamless, but in some 
> including DQSD, we have to use the "wrong" way to write a number: 
> 
> On my system this is wrong:
> 29.55
> 
> on my system this is right:
> 29,55
> 
> Now my question.
> Is there anyway that i can configure this to work right in DQSD?
> Is there anyway that someone can make the installer detect 
> this localization? 

It's the same here in Sweden.

You see, what you're entering into the search bar (provided you mean when
you use it as a calculator) is actually JavaScript code.

If you type:

 25 + 9 / 3 * 3.14

the search bar responds with

 34.42

As this is just a JavaScript expression and JavaScript always expresses
floating point numbers in a locale-invariant manner, there's no built-in
facility for localized numerics.

Then again, I guess we could preprocess every numeric expression replacing
"<decimal separator of your choice>" with "." before evaluating the
expression.

To me it just seems counter-intuitive, but maybe that's because I know what
it does, so I expect the locale-invariant behavior.

- Kim


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
DQSD-Users@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?forum_id=8601

Reply via email to