From: Jean Privat Date: Wed, 14 Aug 2019 15:23:30 +0000 (-0400) Subject: Merge: abstract_compiler: Replace the use of `n_float` by the `value` X-Git-Url: http://nitlanguage.org Merge: abstract_compiler: Replace the use of `n_float` by the `value` ## Added methods Add a little improvement of the abstract_compiler to generate a Float value by the usage of the `value` and not the `n_float`. Add the float conversion in exponential hexadecimal notation. ``` assert 12.345.to_hexa_exponential_notation == "0x1.8b0a3d70a3d71p+3" assert 12.345.to_hexa_exponential_notation.to_f == 12.345 ``` ## Future work Take into account the scientific notation for the display. Pull-Request: #2778 Reviewed-by: Alexandre Terrasa --- 57b7df3bb50111403e3b0b9112cc4c7ed4b3aec4