This code:
Outputs the line: -2.71050543121376E-20.SCAR Code:Writeln(FloatToStr(Cose(Round(Degrees(Pi / 2)))));
The actually value of Cos(90) = 0.
The rest of the values seem to work somehow though![]()
This code:
Outputs the line: -2.71050543121376E-20.SCAR Code:Writeln(FloatToStr(Cose(Round(Degrees(Pi / 2)))));
The actually value of Cos(90) = 0.
The rest of the values seem to work somehow though![]()
SCAR Code:if (YourActivity = 'ReadingThis') then
Inc(ViewCount);
Writeln(FloatToStr(Cose(Round(Degrees(Pi / 2)))));
Are you sure that
returns 90?Round(Degrees(Pi / 2)))
~Hermen
Yes,
That writes 90 into the debug box.SCAR Code:Writeln(IntToStr(Round(Degrees(Pi / 2))));
SCAR Code:if (YourActivity = 'ReadingThis') then
Inc(ViewCount);
Isn't the actual function Cos?
function Cos(e : Extended): Extended;
The Cos function is a mathematical function giving the Cosine value of X given in radians.
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Cos is used when you have the angle in raidans, Cose when you have it in degrees.
SCAR Code:Writeln(FloatToStr(Cos(Pi / 2)));
Returns same value, it's really strange =S
SCAR Code:if (YourActivity = 'ReadingThis') then
Inc(ViewCount);
Scar bug... Talk to Freddy![]()
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Using scar 3.15bCode:Line 3: [Error] (3:20): Unknown identifier 'Cose' in script
but writeln(FloatToStr(Cos(Pi / 2))); returns
-2,71050543121376E-20 too, which is really weird
There are currently 1 users browsing this thread. (0 members and 1 guests)