mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: Branches: main, release Reorganize the code in the compiler to centralize the code which handles output of floating point literals. compiler/c_util.m: Add new routines make_float_literal and output_float_literal. These output to 17 digits precision. Also add some comments. compiler/mlds_to_c.m: compiler/llds_out.m: compiler/mlds_to_java.m: compiler/ilasm.m: Use the new routines. Also add some comments. tests/hard_coded/Mmakefile: tests/hard_coded/float_consistency.m: tests/hard_coded/float_consistency.exp: A regression test.
3 lines
66 B
Plaintext
3 lines
66 B
Plaintext
Calc_one = Lit_one: true
|
|
Calc_one/9.0 = Lit_one/9.0: true
|