We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d99b6 commit 69e7b6bCopy full SHA for 69e7b6b
source/mir/bignum/decimal.d
@@ -967,15 +967,21 @@ struct Decimal(uint maxSize64)
967
}
968
969
///
970
- bool isNaN() const @property
+ bool isNaN() scope const @property
971
{
972
return exponent == exponent.max && coefficient.length;
973
974
975
976
- bool isInfinity() const @property
+ bool isInfinity() scope const @property
977
978
- return exponent == exponent.max && !coefficient.length;
+ return exponent == exponent.max && coefficient.length == 0;
979
+ }
980
+
981
+ ///
982
+ bool isSpecial() scope const @property
983
+ {
984
+ return exponent == exponent.max;
985
986
987
0 commit comments