MegaZeux expressions currently only support truncated division and floored modulo. While these are useful in most cases, it's problematic that their division styles don't match each other. Floor division would also be very useful to have available and it'd probably also be good to have a modulo operator that matches the MODULO command.
The best sounding solution so far to all of this is to make / remain truncated division, switch % to truncated modulo to match it, and add the new operators // for floor division and %% for floor modulo (replacing the old %). Since % needs to be transformed to %%, this change should occur in debytecode. This could be implemented pretty trivially at any time for debytecode builds.
Report ID | 762 | Title | Truncated modulo and floor division operators |
Product | MegaZeux Feature Requests | Status | UNFILED (Severity 1 - Low) |
Version | GIT (debytecode) | Fixed in | - |
Page 1 of 1
Report ID #762: Truncated modulo and floor division operators
#1 Lachesis
Posted 16 March 2019 - 01:26 AM
"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.