-
Notifications
You must be signed in to change notification settings - Fork 13
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
value in an unit #163
Comments
Hi @raoz, This is possible right now via: Measure.of(8, furlongs).over(miles).value Does this solve your use case? |
Hi @jscheiny, Thanks, this does solve it for now, might make a pull request soon to add the |
raoz
added a commit
to fractorysolutions/safe-units
that referenced
this issue
May 21, 2021
raoz
added a commit
to fractorysolutions/safe-units
that referenced
this issue
May 21, 2021
raoz
added a commit
to fractorysolutions/safe-units
that referenced
this issue
May 21, 2021
raoz
added a commit
to fractorysolutions/safe-units
that referenced
this issue
May 21, 2021
raoz
added a commit
to fractorysolutions/safe-units
that referenced
this issue
May 21, 2021
raoz
added a commit
to fractorysolutions/safe-units
that referenced
this issue
May 21, 2021
raoz
added a commit
to fractorysolutions/safe-units
that referenced
this issue
May 21, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
Would appreciate an escape-hatch to get the value in a particular unit, e.g.
Measure.of(8, furlongs).valueIn(miles)
returns numeric1
.The text was updated successfully, but these errors were encountered: