Bug in division

When I division two numbers:
100/3
result is 33.
Of course that result is bad. Is not Integer number, it is Double.
Do not be surprised if I made 100 div 3.

The problem is no comma.
Try, 100/3.0 or 100/3.00
then result is correct, 33.333333333333

Another example:

var a: integer; b: double;
begin
a:=3;
b:=100/a;
writeln(Floattostr(b));
end.
As you might guess result is 33.000000000000. Wrong.

Hi.

Pascal script is deprecated and we don’t develop it, but if you want contribute you can suggest a fix on git https://github.com/remobjects/pascalscript .

This behavior can be changed with: {$DEFINE PS_DELPHIDIV} (you can add it to the pascalscript.inc).