Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
134 stars 2 forks source link

Division with remainder node #2727

Open BaxterOttoman opened 1 month ago

BaxterOttoman commented 1 month ago

Is your feature request related to a problem? Please describe.

Division with remainder is an operation that is useful for many applications. A method exists for it in C# and I think it would be very useful to have that as a Protoflux node.

Describe the solution you'd like

I would like a Protoflux node that takes two numeric inputs for a dividend and divisor and returns the quotient and remainder as two separate numbers.

Describe alternatives you've considered

This is also accomplished by flooring the result of a division to get the quotient and modding the dividend by the divisor to get the remainder.

Additional Context

Despite the relative ease of the alternative, there are Protoflux nodes that exist that do similar things to this. The PlusMinus operator springs to mind as that is also easy to achieve without a discrete node. I think a Division with Remainder node would be a useful addition to Protoflux.

Requesters

BaxterOttoman

Frooxius commented 1 month ago

This should be easy to add.

@BlueCyro @RyuviTheViali any interest in taking this one?

BlueCyro commented 1 month ago

This should be easy to add.

@BlueCyro @RyuviTheViali any interest in taking this one?

I gotchu fam