Subversion Repositories SmartDukaan

Rev

Rev 33231 | Rev 34568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33231 Rev 33354
Line 462... Line 462...
462
		helper.setFrom(senderAddress);
462
		helper.setFrom(senderAddress);
463
		mailSender.send(message);
463
		mailSender.send(message);
464
	}
464
	}
465
 
465
 
466
	public static int compareFloat(float f1, float f2) {
466
	public static int compareFloat(float f1, float f2) {
467
		if ((f1 - f2 < FLOAT_EPSILON) || (f1 - f2 < -FLOAT_EPSILON)) {
467
		if (Math.abs(f1 - f2) < DOUBLE_EPSILON) {
468
			return 0;
468
			return 0;
469
		}
469
		}
-
 
470
 
470
		return Float.compare(f1, f2);
471
		return Float.compare(f1, f2);
471
	}
472
	}
472
 
473
 
473
	public static int compareDouble(double d1, double d2) {
474
	public static int compareDouble(double d1, double d2) {
474
		if ((d1 - d2 < DOUBLE_EPSILON) || (d1 - d2 < -DOUBLE_EPSILON)) {
475
		if (Math.abs(d1 - d2) < DOUBLE_EPSILON) {
475
			return 0;
476
			return 0;
476
		}
477
		}
477
		return Double.compare(d1, d2);
478
		return Double.compare(d1, d2);
478
	}
479
	}
479
 
480