Absolute value
4 posts • Page 1 of 1
Absolute value
Hi there. Is there a simple thyme piece of code to get the absolute value of whatever number/function?
Thanks!
Thanks!
- dsengere
- Posts: 12
- Joined: Thu Oct 22, 2009 5:49 pm
Re: Absolute value
Link: "Surely somebody hates Walter Cronkite.."
Sonic: "Probably.. But somebody hates everyone."
Sonic: "Probably.. But somebody hates everyone."
-
link0007 - Posts: 408
- Joined: Thu Jun 11, 2009 2:45 pm
Re: Absolute value
- Code: Select all
Scene.my.abs = (n)=>{n < 0 ? {n * (-1)} : {n}}
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Absolute value
- Code: Select all
scene.my.abs = (n)=>{n < 0 ? - n : n}
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests