Attached is a very simple but occasionally useful node: sign.
Sign returns the sign of a number: -1 if the number is negative, +1 if the number is positive, or 0 if the number is 0 (or -0).
This comes in handy every now and then. It's not terribly hard to compute from scratch, but you do have to beware of those negative zeros which sometimes appear. So it's easier to copy paste this node than to reinvent that wheel each time. Most languages have this function. Now we do too.
Sign will be included in the upcoming 3.2 rev of my library - coming soon!
- sign_demo_screenshot.png 364 KB
- sign_demo.ndbx.zip 9.15 KB
|?||Show this help|
|ESC||Blurs the current field|
|r||Focus the comment reply box|
|^ + ↩||Submit the comment|
You can use
Command ⌘ instead of
Control ^ on Mac