gibbsly / gm

A utility datapack for doing math operations
The Unlicense
31 stars 2 forks source link

Add modulo function #13

Closed GlitchlessCode closed 6 months ago

GlitchlessCode commented 6 months ago

The Suggestion

Comes from #11

Implementation description

GlitchlessCode commented 6 months ago

I made sure to test this as extensively as possible, and I couldn't find any edge cases where it broke (apart from y=0, which now correctly returns a fail). This includes int/int, int/float, float/int, float/float, positive/positive, positive/negative, negative/positive, negative/negative, extremely small values (including exponenent notation), extremely large values, and very long decimals.

gibbsly commented 6 months ago

excellent work as always ty

GlitchlessCode commented 6 months ago

Oh woops, thanks for catching that :P I had that for debugging purposes