d***@gmail.com
2017-11-28 23:08:28 UTC
Using the latest vishap from github (v2.1.0 [2017/11/21] on Ubuntu 16.04.2 x64
Using compile option -OC
IMPORT Out;
Out.Int(MIN(LONGINT),0); # produces -9223372036854775808
Out.Int(-9223372036854775808, 0) # produces Out.Int(-9223372036854775808, 0);
^
pos 138 err 203 number too large
Out.Int( (MIN(LONGINT)) DIV 10, 0); # produces 922337203685477579
Out.LongReal( MIN(LONGINT) / 10.0, 20); # produces -9.22337203685478D+017
Using compile option -OC
IMPORT Out;
Out.Int(MIN(LONGINT),0); # produces -9223372036854775808
Out.Int(-9223372036854775808, 0) # produces Out.Int(-9223372036854775808, 0);
^
pos 138 err 203 number too large
Out.Int( (MIN(LONGINT)) DIV 10, 0); # produces 922337203685477579
Out.LongReal( MIN(LONGINT) / 10.0, 20); # produces -9.22337203685478D+017