Qalc interprets 1,000 as a vector
Jonathan Ryshpan
jonrysh at pacbell.net
Tue Nov 13 18:19:37 UTC 2012
I've been very happy with the desk calculator Qalc, except for one
thing. If you enter a comma separated number, say 1,000 (easy to do if
you paste it in from a financial web site), qalc interprets it as a
vector. Is there any way to suppress this? The documentation indicates
that it should be possible by setting the locale correctly, but I
haven't been able to get it to work.
Here's the situation:
My locale
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=POSIX
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
A short session using the command line interface to qalc (empty lines
edited out for brevity):
$ qalc
> 1,234
[1, 234] = [1, 234]
> $1,234
[dollar * 1, 234] = [$1, 234]
> 1,1
[1, 1] = [1, 1]
> 2,3
[2, 3] = [2, 3]
> +
[1, 1] + [2, 3] = [3, 4]
> quit
Qalculate! 0.9.7 (Using KDE 3.5.10-38-fc17 Fedora)
Running on x86_64 hardware
More information about the users
mailing list