summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texprinting.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/source/tex/texprinting.c')
-rw-r--r--source/luametatex/source/tex/texprinting.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/luametatex/source/tex/texprinting.c b/source/luametatex/source/tex/texprinting.c
index 1e384a9cd..9e502fbdf 100644
--- a/source/luametatex/source/tex/texprinting.c
+++ b/source/luametatex/source/tex/texprinting.c
@@ -585,6 +585,17 @@ void tex_print_sparse_dimension(scaled s, int unit)
}
}
+/*tex
+ Good enough.
+*/
+
+void tex_print_posit(halfword s)
+{
+ char b[32];
+ sprintf(b, "%.20g", tex_posit_to_double(s));
+ tex_print_str(b);
+}
+
/*tex
Hexadecimal printing of nonnegative integers is accomplished by |print_hex|. We have a few