emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numeri


From: Kenichi Handa
Subject: Re: numeri
Date: Mon, 01 Dec 2008 21:09:44 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

In article <address@hidden>, Stefan Monnier <address@hidden> 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
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]