commit | a514149aadea1542c9c00004a0367f8ee2247c95 | [log] [tgz] |
---|---|---|
author | Harald Kirsch <pifpafpuf@gmx.de> | Wed Oct 04 17:12:48 2023 +0100 |
committer | aherbert <aherbert@apache.org> | Wed Oct 04 17:14:46 2023 +0100 |
tree | dd2b19b4aca5aaa2b0da2276c98aa769ac7bebcf | |
parent | 5e54406ae9895dd9c9f5831e6fcd1a9fb2a7b52f [diff] |
NUMBERS-205: Introduces isZero to Addition and isOne to Multiplication All classes already implementing Addition and Multiplication got their specialized versions instead of just calling equals() on zero() or one() respectively to avoid potentially expensive operations, like BigFraction creating fresh copies of numerator and/or denominator if either is negative.
The Apache Commons Numbers project provides number types and utilities.
More information can be found on the Apache Commons Numbers homepage. The Javadoc for each of the modules can be browsed:
Questions related to the usage of Apache Commons Numbers should be posted to the user mailing list.
You can download source and binaries from our download page.
Alternatively, you can pull it from the central Maven repositories, for example:
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-numbers-core</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-numbers-complex</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-numbers-quaternion</artifactId> <version>1.1</version> </dependency>
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
mvn
.If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
This code is under the Apache Licence v2.
See the NOTICE
file for required notices and attributions.
You like Apache Commons Numbers? Then donate back to the ASF to support the development.
#apache-commons
IRC channel on irc.freenode.org