diff options
| author | Pierre-Marie Pédrot | 2020-05-22 11:59:43 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-05-22 11:59:43 +0200 |
| commit | 7e09ee64b721baf0803c5fdb91c4687fded112cb (patch) | |
| tree | 9f3f691be9b0500e846fee282183d5e0975bec8c /doc | |
| parent | 90389df4d03a6a6232e0372ff3efee720f85d284 (diff) | |
| parent | 04e22abe4378e29671def7b4d9c7e509c58ef6b6 (diff) | |
Merge PR #11986: [primitive floats] Add low level printing
Ack-by: SkySkimmer
Reviewed-by: ppedrot
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/changelog/03-notations/11986-float-low-level-printing.rst | 5 | ||||
| -rw-r--r-- | doc/sphinx/language/coq-library.rst | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/doc/changelog/03-notations/11986-float-low-level-printing.rst b/doc/changelog/03-notations/11986-float-low-level-printing.rst new file mode 100644 index 0000000000..f3d85cadc6 --- /dev/null +++ b/doc/changelog/03-notations/11986-float-low-level-printing.rst @@ -0,0 +1,5 @@ +- **Added:** + Add flag ``Printing Float`` to print primitive floats as hexadecimal + instead of decimal values. This is included in ``Set Printing All``. + (`#11986 <https://github.com/coq/coq/pull/11986>`_, + by Pierre Roux). diff --git a/doc/sphinx/language/coq-library.rst b/doc/sphinx/language/coq-library.rst index 899173a83a..b2b68482ef 100644 --- a/doc/sphinx/language/coq-library.rst +++ b/doc/sphinx/language/coq-library.rst @@ -1062,11 +1062,17 @@ 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] +.. warn:: The constant @numeral is not a binary64 floating-point value. A closest value @numeral 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``). +.. flag:: Printing Float + + Turn this flag off (it is on by default) to deactivate decimal + printing of floating-point constants. They will then be printed + with an hexadecimal representation. + .. example:: .. coqtop:: all |
