(09-03-2024, 12:16 AM)NakedApe Wrote: Hey @Dav, I tried running your BALLFIELD above, but get Illegal Function line 96, which reads: x = SQR(r2 - y * y)
I'm on a Mac. Any idea why I can run it? Seems like the SQR function oughta work for me too, darn it... Thnx.
Hmm, I dunno. Works for me, but I'm in Linux. Probably bplus is right about the SQR is getting a bad number some reason. Maybe you could alter the SUB to make sure SQR gets a positive, like this, just for trying sake, try this in the FC sub instead and see what happens.
- Dav
Not saying this is a solution or fix, let’s just see if it gets you past that error and see what happens next or if it will run at all…
Code: (Select All)
precalc = r2 - y * y: If precalc <= 0 Then precalc = 1
x = Sqr(precalc)