why does it give an answer = 0?SCAR Code:program New;
{.include srl/srl.scar}
var
time : Extended;
begin
cleardebug;
time := 1/7
writeln(floattostr(time));
end.
why does it give an answer = 0?SCAR Code:program New;
{.include srl/srl.scar}
var
time : Extended;
begin
cleardebug;
time := 1/7
writeln(floattostr(time));
end.
You need to declare the 1 and 7 as Extended as well:
pascal Code:program New;
{.include srl/srl.scar}
var
time : Extended;
begin
cleardebug;
time := 1.0/7.0;
writeln(floattostr(time));
end.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
thx and i posted a thread about anti ban could u answer my questtion plz
There are currently 1 users browsing this thread. (0 members and 1 guests)