Closed GlowingScrewdriver closed 5 months ago
The following tests are ported and passing from BRIL:
float
-- arithmetic operationsfloat_divide_by_zero
float_zero_cmp
-- comparing -0.0 and +0.0Currently, the floating-point comparisons are ordered. This means if either (or both) of the operands is a QNaN value ("Quiet NaN"), the result is false.
Added a new test that isn't in Bril: float_nan_detect
.
Used to ensure that NaN values can be detected by the program. This depends on the fact that comparisons are ordered.
Support for floating-point numbers in Brilisp. We will use double-precision floats, and ordered comparison for logic. There is also a new runtime function,
fprint
, used to print floating-point numbers.Fix #17