You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that in the package you can use measurement to convert " -123.4(56) " into -123.4 ± 5.6. But is there a way to take the Measurement object and output a string formatted with parentheses to denote uncertainties like "-123.4(56)".
Ideally, it would be of the form repr("text/something", -123.4 ± 5.6) ≈ "-123.4(56)"
The text was updated successfully, but these errors were encountered:
While -123.4 ± 5.6 is a very practical representation for code, it would be useful for me to allow for converting it to a string format like "-123.4(56)" since that's the form I want to be pasting into my Latex document.
I imagine it could have a MIME like text/x-plain or text/unc-p, though I'm no expert at naming these things.
I noticed that in the package you can use
measurement
to convert" -123.4(56) "
into-123.4 ± 5.6
. But is there a way to take the Measurement object and output a string formatted with parentheses to denote uncertainties like"-123.4(56)"
.Ideally, it would be of the form
repr("text/something", -123.4 ± 5.6) ≈ "-123.4(56)"
The text was updated successfully, but these errors were encountered: