Searched refs:approxEqual (Results 1 – 1 of 1) sorted by relevance
/art/test/003-omnibus-opcodes/src/ |
D | FloatMath.java | 285 static boolean approxEqual(float a, float b, float maxDelta) { in approxEqual() method in FloatMath 291 static boolean approxEqual(double a, double b, double maxDelta) { in approxEqual() method in FloatMath 306 Main.assertTrue(approxEqual(Math.abs(ff), ff, 0.001f)); in jlmTests() 307 Main.assertTrue(approxEqual(Math.abs(-ff), ff, 0.001f)); in jlmTests() 308 Main.assertTrue(approxEqual(Math.min(ff, -5.0f), -5.0f, 0.001f)); in jlmTests() 309 Main.assertTrue(approxEqual(Math.max(ff, -5.0f), ff, 0.001f)); in jlmTests() 311 Main.assertTrue(approxEqual(Math.abs(dd), dd, 0.001)); in jlmTests() 312 Main.assertTrue(approxEqual(Math.abs(-dd), dd, 0.001)); in jlmTests() 313 Main.assertTrue(approxEqual(Math.min(dd, -5.0), -5.0, 0.001)); in jlmTests() 314 Main.assertTrue(approxEqual(Math.max(dd, -5.0), dd, 0.001)); in jlmTests() [all …]
|