From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: Marco Bodrato <bodrato@gulp.linux.it>, 164686-forwarded@bugs.debian.org
Subject: Re: Bug#164686: zsh: Wrong floatting point operation (when locale_decimal_sign=","?)
Date: Mon, 14 Oct 2002 18:00:21 -0400 [thread overview]
Message-ID: <20021014220021.GB30674@dman.com> (raw)
In-Reply-To: <E1816J0-0001YL-00@debian>
> Here is the log of a repetible, wrong session of zsh:
>
> $ LANG=it_IT@euro zsh
> debian% a=4003
> debian% b=4
> debian% typeset -F 4 a
> debian% typeset -F 4 c
> debian% c=$((a/b))
> debian% print $c
> 75,0000
> debian% c=5.5
> debian% c=$((a/b))
> debian% print $c
> 1000.7500
> debian% exit
>
> And here is the correct one:
>
> $ LANG=C zsh
> debian% a=4003
> debian% b=4
> debian% typeset -F 4 a
> debian% typeset -F 4 c
> debian% c=$((a/b))
> debian% print $c
> 1000.7500
> debian% exit
>
> I think the problem reside in the fact that in italian we write
> 4003/4 = 1.000,75
Do we need another set of setlocale() calls somewhere?
next parent reply other threads:[~2002-10-14 22:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1816J0-0001YL-00@debian>
2002-10-14 22:00 ` Clint Adams [this message]
2002-10-16 9:48 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021014220021.GB30674@dman.com \
--to=schizo@debian.org \
--cc=164686-forwarded@bugs.debian.org \
--cc=bodrato@gulp.linux.it \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).