From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: numeri
Date: Mon, 01 Dec 2008 21:09:44 +0900 [thread overview]
Message-ID: <E1L77ay-0000e0-RT@etlken.m17n.org> (raw)
In-Reply-To: <jwvy6z2xi4x.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sat, 29 Nov 2008 17:50:54 -0500)
In article <jwvy6z2xi4x.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> (get-char-code-property ?4 'numeric-value)
> > Actually, why not make the above return the number 4? The Unicode
> Agreed. It says `numeric-value' so it should return a number.
> I understand that 1/5 cannot be represented exactly as a number in Elisp
> right now, but the floating point approximation should be sufficient: we
> can recover the /15 fraction from it, if really needed, by considering
> additional assumptions such as "this is the numeric value of a unicode
> char".
Ok, I've just committed changes to make the above return an
integer or a floating point (if non-nil).
---
Kenichi Handa
handa@ni.aist.go.jp
prev parent reply other threads:[~2008-12-01 12:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-29 14:36 numeri Eli Zaretskii
2008-11-29 16:04 ` numeri Andreas Schwab
2008-11-29 17:22 ` numeri Eli Zaretskii
2008-11-29 17:39 ` numeri Andreas Schwab
2008-11-29 18:05 ` numeri Eli Zaretskii
2008-11-29 18:38 ` numeri Eli Zaretskii
2008-11-29 19:01 ` numeri David De La Harpe Golden
2008-11-29 21:26 ` numeri Eli Zaretskii
2008-11-29 22:50 ` numeri Stefan Monnier
2008-12-01 12:09 ` Kenichi Handa [this message]
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=E1L77ay-0000e0-RT@etlken.m17n.org \
--to=handa@m17n.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.