Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making measurements work with Printf #101

Closed
longemen3000 opened this issue Apr 8, 2021 · 0 comments · Fixed by #102
Closed

making measurements work with Printf #101

longemen3000 opened this issue Apr 8, 2021 · 0 comments · Fixed by #102

Comments

@longemen3000
Copy link
Contributor

longemen3000 commented Apr 8, 2021

in the work of making Optim work with measurements (and fixing #100 ), i found that the show error is due to a measurement numbers being incapable of being formatted by @sprintf macro. a stopgap solution is to use Printf.tofloat(x::Measurement) = tofloat(value(x)) but it would be great to apply the formatting to both the value and the uncertainty, any idea on how to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant