Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,26 @@
$ include "seed7_05.s7i";
include "float.s7i";
const proc: main is func
begin
writeln("positive infinity: " <& Infinity);
writeln("negative infinity: " <& -Infinity);
writeln("negative zero: " <& -0.0);
writeln("not a number: " <& NaN);
# some arithmetic
writeln("+Infinity + 2.0 = " <& Infinity + 2.0);
writeln("+Infinity - 10.1 = " <& Infinity - 10.1);
writeln("+Infinity + -Infinity = " <& Infinity + -Infinity);
writeln("0.0 * +Infinity = " <& 0.0 * Infinity);
writeln("1.0/-0.0 = " <& 1.0 / -0.0);
writeln("NaN + 1.0 = " <& NaN + 1.0);
writeln("NaN + NaN = " <& NaN + NaN);
# some comparisons
writeln("NaN = NaN = " <& NaN = NaN);
writeln("isNaN(NaN) = " <& isNaN(NaN));
writeln("0.0 = -0.0 = " <& 0.0 = -0.0);
writeln("isNegativeZero(-0.0) = " <& isNegativeZero(-0.0));
writeln("isNegativeZero(0.0) = " <& isNegativeZero(0.0));
end func;