num-rational icon indicating copy to clipboard operation
num-rational copied to clipboard

add numer_mut() denom_mut()

Open jaamesd opened this issue 3 months ago • 2 comments

jaamesd avatar Oct 01 '25 08:10 jaamesd

At minimum, this has the same hazards as new_raw, as these could be used to create non-reduced values and/or non-positive denominators.

What is the use case? (Ideally some real case you're facing, not a hypothetical.)

cuviper avatar Oct 01 '25 22:10 cuviper

I'm using this to track a bunch of performance metrics in the form of / and / in a multi agent system. These metrics are then used for heuristics/telemetry so compatibility with simple filters like WSMA/EMA is desirable as is geomeans etc. Most of these are event driven so constantl structuring/destructuring is a huge pain.

jaamesd avatar Oct 02 '25 07:10 jaamesd