From ed399336b886a062e0e3070314c117d62d9a8af3 Mon Sep 17 00:00:00 2001 From: Pierre Roux Date: Wed, 18 Mar 2020 21:33:34 +0100 Subject: Print a warning when parsing non floating-point values. For instance, parsing 0.1 will print a warning whereas parsing 0.5 won't. --- doc/sphinx/language/coq-library.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/sphinx') diff --git a/doc/sphinx/language/coq-library.rst b/doc/sphinx/language/coq-library.rst index 39f2ccec29..acdd4408ed 100644 --- a/doc/sphinx/language/coq-library.rst +++ b/doc/sphinx/language/coq-library.rst @@ -1062,6 +1062,11 @@ Floating-point constants are parsed and pretty-printed as (17-digit) decimal constants. This ensures that the composition :math:`\text{parse} \circ \text{print}` amounts to the identity. +.. warn:: The constant @numeral is not a binary64 floating-point value. A closest value will be used and unambiguously printed @numeral. [inexact-float,parsing] + + Not all decimal constants are floating-point values. This warning + is generated when parsing such a constant (for instance ``0.1``). + .. example:: .. coqtop:: all -- cgit v1.2.3