SRL Archive - Help and Support

Math function question...


Pure1993

2009-09-05 00:47:31

Hey, small question: Do we have advanced root functions in Scar? For example what the fifth root of 32 is? Because Scar returns a math error when using pow( x, 1/y)…
Thanks,
Pure1993

nielsie95

2009-09-05 01:03:15

This seems to works for me?


WriteLn(Pow(32, 1/5.0));

Pure1993

2009-09-05 14:22:48

Hmmm, okay, the problem must have anohother source then… I'll take a look at it again, thanks. ^^
But, erm, how come that works without a FloatToStr? :confused:

ZephyrsFury

2009-09-05 14:24:29

From: Pure1993
Hmmm, okay, the problem must have anohother source then… I'll take a look at it again, thanks. ^^
But, erm, how come that works without a FloatToStr? :confused:


WriteLn in SCAR 3.20 can take any basic non-record types now.

Pure1993

2009-09-05 15:02:19

Good to know, thanks =)