Arthur Camouseigt
082f9819e9
[Poincare] Changed ConvertFloatToText to prevent conversion error
...
We now compute the value of the mantissa in double (instead of float)
to limit conversion error occuring for big numbers.
Change-Id: Ia61c052f0bc4a9196c53e2c7900eb48e3343d39c
2020-11-04 14:45:35 +01:00
Ruben Dashyan
3271fc90a4
[poincare/test] Clean header inclusions
2020-02-12 15:13:16 +01:00
Émilie Feral
89ea25556c
[poincare] Add test to print the float 1000
...
On emscripten platform, print_float(1000.0) used to return "0000"
2019-11-25 10:19:11 +01:00
Émilie Feral
c982b4c452
[poincare] Tests: fix compilation
2019-09-26 11:26:48 +02:00
Émilie Feral
4d593a6149
[poincare] PrintFloat: take into account the distinction between char
...
and glyph length in ConvertFloatToText
2019-09-26 11:26:48 +02:00
Léa Saviot
70e3bcd8c1
[poincare/test] Fix print_float test
2019-08-12 10:51:42 +02:00
Léa Saviot
7e0e598113
[poincare/print_float] More engineering notation tests
2019-08-09 13:26:01 +02:00
Émilie Feral
36648ee0d8
[poincare] PrintFloat: change name "k_maxFloatBufferLength" -->
...
"k_maxFloatBufferSize"
2019-08-09 12:04:33 +02:00
Léa Saviot
565f017494
[poincare/print_float] Fix PrintFloat and its tests
2019-08-08 17:29:10 +02:00
Léa Saviot
93050b539e
[poincare/print_float] Tests
2019-08-08 17:22:06 +02:00
Léa Saviot
fdafd91da5
[poincare/print_int] Fix for tests
2019-08-08 17:22:06 +02:00
Léa Saviot
b0b10f184e
[poincare/print_float] convertFloatToText -> ConvertFloatToText
2019-08-08 17:22:06 +02:00
Émilie Feral
cedcab21ec
[poincare] Tidy tests and add TODO for tests that need to be completed
2019-08-08 17:22:04 +02:00