If I have a Unitful.jl quantity like 0.00123u"s"
, how can I automatically display it with the nicest looking prefix? (1.23 ms
in this example)
I don't think there's a function to do that
you kinda want the inverse of the standard behaviour of upreferred
Looking for something like https://github.com/KristofferC/TimerOutputs.jl/blob/51a5e71babc0a2115b654a3b270807a6380f4c51/src/utilities.jl?
There are some solutions there: https://github.com/PainterQubits/Unitful.jl/issues/240
There's also https://discourse.julialang.org/t/ann-human-friendly-numeric-output-numericio/5159
But appears unrelated to Unitful
Last updated: Nov 22 2024 at 04:41 UTC