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

Add Quantity.toZero() #129

Closed
odrotbohm opened this issue Nov 29, 2015 · 0 comments
Closed

Add Quantity.toZero() #129

odrotbohm opened this issue Nov 29, 2015 · 0 comments
Assignees
Milestone

Comments

@odrotbohm
Copy link
Member

See https://auditorium.inf.tu-dresden.de/en/questions/3519 for reference.

@odrotbohm odrotbohm self-assigned this Nov 29, 2015
@odrotbohm odrotbohm added this to the 6.2.1 milestone Nov 29, 2015
odrotbohm added a commit that referenced this issue Nov 30, 2015
This allows:

quantity.isGreaterThan(Quantity.of(0, quantity.getMetric());

to be simplified to:

quantity.isGreaterThan(quantity.toZero());
odrotbohm added a commit that referenced this issue Nov 30, 2015
This allows:

quantity.isGreaterThan(Quantity.of(0, quantity.getMetric());

to be simplified to:

quantity.isGreaterThan(quantity.toZero());
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

No branches or pull requests

1 participant