diff options
Diffstat (limited to 'lisp/org/ob-C.el')
-rw-r--r-- | lisp/org/ob-C.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/ob-C.el b/lisp/org/ob-C.el index 3a6e99623f5..7763c4c07c1 100644 --- a/lisp/org/ob-C.el +++ b/lisp/org/ob-C.el @@ -339,7 +339,7 @@ FORMAT can be either a format string or a function which is called with VAL." (type (pcase basetype (`integerp '("int" "%d")) - (`floatp '("double" "%f")) + (`floatp '("double" "%s")) ;; %f rounds, use %s to print the float literally (`stringp (list (if (eq org-babel-c-variant 'd) "string" "const char*") |