Simba Code:program new;
var
e : extended;
e2 : double;
begin
e := 50/100;
e := 100*e;
writeln(e);
e2 := 50/100;
e2 := 100*e2;
writeln(e2);
end.
I'm confused
Code:Compiled successfully in 31 ms. 0 0 Successfully executed.
Simba Code:program new;
var
e : extended;
e2 : double;
begin
e := 50/100;
e := 100*e;
writeln(e);
e2 := 50/100;
e2 := 100*e2;
writeln(e2);
end.
I'm confused
Code:Compiled successfully in 31 ms. 0 0 Successfully executed.
Tuts: Run script from another script || [Lape] Exceeding limits of VariantInvoke()
Plugins: Fast multi-layer objects finding || Multithreading in tabs|| Optimised motion detection || ETL - paint on any window||Magic Keyboard (Simba's DirectX input + input in background to any normal window)
Snippets: [RS] Ultimate Loot Grabber || ShowPalette() || APPA JS Interface
Pascalscript use integer division when you do 50/100. Use 50.0/100.0 to get an exact result.
In lape this will be fixed when it uses extended division by default. If you want to use integer division in lape use div.
Working on: Tithe Farmer
Thanks ,rep+
Tuts: Run script from another script || [Lape] Exceeding limits of VariantInvoke()
Plugins: Fast multi-layer objects finding || Multithreading in tabs|| Optimised motion detection || ETL - paint on any window||Magic Keyboard (Simba's DirectX input + input in background to any normal window)
Snippets: [RS] Ultimate Loot Grabber || ShowPalette() || APPA JS Interface
There are currently 1 users browsing this thread. (0 members and 1 guests)