Searched refs:toFloat (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 71 assertEquals(0.0f, toFloat(toHalf(0.0f)), 0.0f); in testHalfToSingle() 72 assertEquals(-0.0f, toFloat(toHalf(-0.0f)), 0.0f); in testHalfToSingle() 73 assertEquals(Float.NaN, toFloat(toHalf(Float.NaN)), 0.0f); in testHalfToSingle() 74 assertEquals(Float.POSITIVE_INFINITY, toFloat(toHalf(Float.POSITIVE_INFINITY)), 0.0f); in testHalfToSingle() 75 assertEquals(Float.NEGATIVE_INFINITY, toFloat(toHalf(Float.NEGATIVE_INFINITY)), 0.0f); in testHalfToSingle() 77 assertEquals(1.0009765625f, toFloat(toHalf(1.0009765625f)), 0.0f); in testHalfToSingle() 78 assertEquals(-2.0f, toFloat(toHalf(-2.0f)), 0.0f); in testHalfToSingle() 79 assertEquals(6.1035156e-5f, toFloat(toHalf(6.10352e-5f)), 0.0f); // Inexact in testHalfToSingle() 80 assertEquals(65504.0f, toFloat(toHalf(65504.0f)), 0.0f); in testHalfToSingle() 81 assertEquals(0.33325195f, toFloat(toHalf(1.0f / 3.0f)), 0.0f); // Inexact in testHalfToSingle() [all …]
|
/libcore/luni/src/main/java/libcore/util/ |
D | FP16.java | 578 public static float toFloat(short h) { in toFloat() method in FP16
|
/libcore/mmodules/core_platform_api/api/legacy_platform/ |
D | current-api.txt | 1053 method public static float toFloat(short);
|