You are not logged in.
clamp($x, -160, 160)
X can equal anything, but this will still fail.
clamp($x, 0, 160)
And yet that works. Is this intended? Its a fairly easy work around with some subtraction, but I still noticed this.
Offline
Please define "fail". A crash? An incorrect result?
what happens if you switch
clamp($x, -160, 160)
for
clamp($x, 0-160, 160)
???????
Offline
Please define "fail". A crash? An incorrect result?
what happens if you switch
clamp($x, -160, 160)
for
clamp($x, 0-160, 160)
???????
... it works if I do that.
Offline
what fails?
Offline
I get a nanoparser error and it crashes
Nanocalc Error! Syntax Error near ' -120, 120)' in 'clamp($x, -120, 120)'!
Offline