Skip to main content

Module round

Module round 

Source

Structs§

Round

Functions§

round_to_nearest 🔒
Rounds like Prometheus: ties round up (towards +Inf), and multiplying by the inverse of nearest follows its float behavior, including NaN for nearest == 0.