double comparison fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32375 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-26 06:29:57 +00:00
parent 96318514aa
commit 0241a4347b
4 changed files with 56 additions and 81 deletions

View file

@ -202,6 +202,7 @@ static NSDecimalNumber *one;
{
return maxNumber;
}
+ (NSDecimalNumber*) minimumDecimalNumber
{
return minNumber;
@ -712,6 +713,10 @@ static NSDecimalNumber *one;
{
return NSOrderedSame;
}
if (self == notANumber)
{
return NSOrderedAscending; // NaN is considered less than anything
}
if ([decimalNumber isKindOfClass: NSDecimalNumberClass])
{
NSDecimal d1 = [self decimalValue];