From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?c=C3=A9dric_ody?= Subject: floatp test in babel Date: Tue, 29 Jan 2019 09:06:13 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f7f4d905809444b1" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goOPr-0000YA-5A for emacs-orgmode@gnu.org; Tue, 29 Jan 2019 03:06:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goOPq-0001KV-Hw for emacs-orgmode@gnu.org; Tue, 29 Jan 2019 03:06:43 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:51568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goOPk-00015E-04 for emacs-orgmode@gnu.org; Tue, 29 Jan 2019 03:06:38 -0500 Received: by mail-wm1-x32e.google.com with SMTP id b11so16727676wmj.1 for ; Tue, 29 Jan 2019 00:06:25 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --000000000000f7f4d905809444b1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I am trying to understand why the floatp lisp function does not seem to detect exponential scientific notation in babel octave mode. If I do #+BEGIN_SRC emacs-lisp (floatp 1e4) #+END_SRC #+RESULTS: : t whereas in the following table is converted into char due to the presence of the third column. #+RESULTS: variables | 1 | 1 | 1e-05 | #+HEADERS: :var a=3Dvariables #+BEGIN_SRC octave :results output replace whos a #+END_SRC #+RESULTS: : Variables in the current scope: : Attr Name Size Bytes Class : =3D=3D=3D=3D =3D=3D=3D=3D =3D=3D=3D=3D =3D=3D=3D=3D=3D =3D=3D=3D=3D=3D : a 1x7 7 char : Can we modify something so that exponential notation is supported? C=C3=A9dric --000000000000f7f4d905809444b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,


I am trying to= understand why the floatp lisp function does not seem to detect exponentia= l scientific notation in babel octave mode.


If I do


#+BEGIN_SRC em= acs-lisp

(floatp 1e4)

#+END_SRC


#+RESULTS:

: t


whereas in the= following table is converted into char due to the presence of the third co= lumn.


#+RESULTS: var= iables

| 1 | 1 | 1e-0= 5 |


#+HEADERS: :va= r a=3Dvariables

#+BEGIN_SRC oc= tave :results output replace

whos a

#+END_SRC


#+RESULTS:

: Variables in= the current scope:

: Attr Name Size Bytes Class
: = =3D=3D=3D=3D =3D=3D=3D=3D =3D=3D=3D=3D =3D=3D= =3D=3D=3D =3D=3D=3D=3D=3D
: a 1x7 = 7 char

:


Can we modify somethin= g so that exponential notation is supported?


C=C3=A9dric


--000000000000f7f4d905809444b1--