true and false represent now proper boolean values, not just 0 and 1. All other previous arithmetic holds.

This commit is contained in:
gnembon committed 2021-03-02 23:33:51 -04:00
1 parent 8f592735ca
commit 1ae358909b
9 files changed
+137 -74

No files matched your search

@@ -48,7 +48,7 @@ public class Sys {
return (cc, tt) -> Value.FALSE;
}
}
Value retval = new NumericValue(v.getBoolean());
Value retval = v.getBoolean()?Value.TRUE:Value.FALSE;
return (cc, tt) -> retval;
});
@@ -56,7 +56,9 @@ public class Sys {
{
if (v instanceof NumericValue)
{
return v;
NumericValue num = (NumericValue)v;
if (num.isInteger()) return new NumericValue(num.getLong());
return new NumericValue(num.getDouble());
}
try
{