http://reference.wol...e/ref/Sign.html
A function that outputs -1, 0, or 1 depending on whether x is negative, zero, or positive, respectively.
The use case would essentially be to replace slightly messier or less intuitive alternate forms of the sign function, like "('x'/'abs('x')')", with "sgn('x')". I expect this to be pretty low priority, but it's something I'd definitely make use of.
Report ID | 624 | Title | sgn() - Sign function for expressions |
Product | MegaZeux Feature Requests | Status | Flagged For Future Version (Severity 1 - Low) |
Version | GIT | Fixed in | - |
Page 1 of 1
Report ID #624: sgn() - Sign function for expressions
Page 1 of 1
Replies (1 - 2)
#2
Lachesis
Posted 16 May 2017 - 04:00 PM
Updating version to: GIT
I'm not sure this is justified just yet. The alternative ('x'/'abs&x&') is not much more expensive and doesn't add extra counters to the list.
I'm not sure this is justified just yet. The alternative ('x'/'abs&x&') is not much more expensive and doesn't add extra counters to the list.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#3
Lachesis
Posted 27 May 2017 - 07:47 PM
Updating status to: Flagged For Future Version
Updating severity to: 1 - Low
I'm going to say this is fine for future versions when we have actual functions or at least compiled expression handling for function counters, but right now it's not necessary.
Updating severity to: 1 - Low
I'm going to say this is fine for future versions when we have actual functions or at least compiled expression handling for function counters, but right now it's not necessary.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
Page 1 of 1
0 User(s) are reading this issue
0 Guests and 0 Anonymous Users
Powered by IP.Tracker 1.3.2 © 2025 IPS, Inc.