mirror of
https://github.com/apache/commons-math.git
synced 2025-02-12 21:16:05 +00:00
backported r1003349 from trunk to branch 2.X
Unnecessary to cast byte into byte Add missing @Override marker git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1003889 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c832a0c215
commit
61c404a0f0
@ -344,19 +344,19 @@ public class Dfp implements FieldElement<Dfp> {
|
||||
// Check some special cases
|
||||
if (s.equals(POS_INFINITY_STRING)) {
|
||||
sign = (byte) 1;
|
||||
nans = (byte) INFINITE;
|
||||
nans = INFINITE;
|
||||
return;
|
||||
}
|
||||
|
||||
if (s.equals(NEG_INFINITY_STRING)) {
|
||||
sign = (byte) -1;
|
||||
nans = (byte) INFINITE;
|
||||
nans = INFINITE;
|
||||
return;
|
||||
}
|
||||
|
||||
if (s.equals(NAN_STRING)) {
|
||||
sign = (byte) 1;
|
||||
nans = (byte) QNAN;
|
||||
nans = QNAN;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1949,6 +1949,7 @@ public class Dfp implements FieldElement<Dfp> {
|
||||
/** Get a string representation of the instance.
|
||||
* @return string representation of the instance
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
if (nans != FINITE) {
|
||||
// if non-finite exceptional cases
|
||||
|
Loading…
x
Reference in New Issue
Block a user