Merge: abstract_compiler: Replace the use of `n_float` by the `value`
authorJean Privat <jean@pryen.org>
Wed, 14 Aug 2019 15:23:30 +0000 (11:23 -0400)
committerJean Privat <jean@pryen.org>
Wed, 14 Aug 2019 15:23:30 +0000 (11:23 -0400)
commit57b7df3bb50111403e3b0b9112cc4c7ed4b3aec4
treefdd00439f6398d3ed1ea75b92d318975e13645cb
parent8029aa7078e808f2221cb7c0d9f5cc46ad1f0bab
parent1ce4368567ae9aa3e7f8ddb7f84b17a6bffa7ef8
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 <alexandre@moz-code.org>