emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* floatp test in babel
@ 2019-01-29  8:06 cédric ody
  0 siblings, 0 replies; only message in thread
From: cédric ody @ 2019-01-29  8:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

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=variables

#+BEGIN_SRC octave :results output replace

whos a

#+END_SRC


#+RESULTS:

: Variables in the current scope:

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

:


Can we modify something so that exponential notation is supported?


Cédric

[-- Attachment #2: Type: text/html, Size: 2891 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-29  8:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-29  8:06 floatp test in babel cédric ody

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).