dMZX Forums: Truncated modulo and floor division operators -> MegaZeux Feature Requests -> Tracker

Jump to content

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
  • Cannot start a new Issue
  • You cannot reply to this issue

Report ID #762: Truncated modulo and floor division operators

#1 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 16 March 2019 - 01:26 AM

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.
"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


Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

1 User(s) are reading this issue
1 Guests and 0 Anonymous Users


Powered by IP.Tracker 1.3.2 © 2024  IPS, Inc.