-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unit.toString causes side effects #1008
Comments
Thanks for reporting. Yes, there is a side effect when I realize that having side effects in an object's |
😄 It may indeed be better to have predictable output for |
Closing this issue in favor of #1483 |
Seems like after just logging to console my unit variable is converted into SI.
Here is my interactive commands:
Seems behavior: after just logging to console q0 is converted from cm to km.
Expected behavior: q0.toNumber() must still return 100001 because it wasn't converted
System info:
The text was updated successfully, but these errors were encountered: