Files
mercury/tests/general/float_test.exp2
Peter Ross 10781e098d Adapt the tests in the general directory so that the version of the
Estimated hours taken: 0.25

Adapt the tests in the general directory so that the version of the
Mercury compiler built with MSVC passes them in the hlc.gc grade.

float_test.exp2:
string_format_test.exp3:
    The MSVC runtime prints out floating points using three digits for
    the exponent.
2001-02-06 15:28:50 +00:00

17 lines
239 B
Plaintext

1234.5678: 1.23e+003
X: 3
Y: 4
X + Y: 7
X * Y: 12
X - Y: -1
X / Y: 0.75
X: 41
Y: -3
X + Y: 38
X * Y: -123
X - Y: 44
X / Y: -13.7
Float max: 1.8e+308
Float min: 2.23e-308
Float epsilon: 2.22e-016