Lines Matching refs:Float
526 Math.min(1.0f, Float.NaN);
527 Assert.assertTrue(Float.isNaN(Math.min(1.0f, Float.NaN)));
528 Assert.assertTrue(Float.isNaN(Math.min(Float.NaN, 1.0f)));
535 Assert.assertEquals(Math.min(0.0f, Float.MAX_VALUE), 0.0f);
536 Assert.assertEquals(Math.min(Float.MIN_VALUE, 0.0f), 0.0f);
537 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MAX_VALUE), Float.MIN_VALUE);
541 Math.max(1.0f, Float.NaN);
542 Assert.assertTrue(Float.isNaN(Math.max(1.0f, Float.NaN)));
543 Assert.assertTrue(Float.isNaN(Math.max(Float.NaN, 1.0f)));
550 Assert.assertEquals(Math.max(0.0f, Float.MAX_VALUE), Float.MAX_VALUE);
551 Assert.assertEquals(Math.max(Float.MIN_VALUE, 0.0f), Float.MIN_VALUE);
552 Assert.assertEquals(Math.max(Float.MIN_VALUE, Float.MAX_VALUE), Float.MAX_VALUE);
834 Assert.assertEquals(Math.round(Float.intBitsToFloat(0x3EFFFFFF)), (int)+0.0f);
836 Assert.assertEquals(Math.round(Float.NaN), (int)+0.0f);
839 Assert.assertEquals(Math.round(Float.POSITIVE_INFINITY), Integer.MAX_VALUE);
840 Assert.assertEquals(Math.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE);
870 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0x7FA00000)));
871 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0xFFA00000)));
873 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0x7FC00000)));
874 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0xFFC00000)));
876 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x7F800000)));
877 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0xFF800000)));
879 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x7F000000)));
880 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0xFF000000)));
881 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00800000)));
882 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80800000)));
884 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00000000)));
885 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80000000)));
887 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00400000)));
888 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80400000)));
889 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00000001)));
890 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80000001)));
920 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x7FA00000)));
921 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0xFFA00000)));
923 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x7FC00000)));
924 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0xFFC00000)));
926 Assert.assertTrue(Float.isInfinite(Float.intBitsToFloat(0x7F800000)));
927 Assert.assertTrue(Float.isInfinite(Float.intBitsToFloat(0xFF800000)));
929 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x7F000000)));
930 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0xFF000000)));
931 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00800000)));
932 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80800000)));
934 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00000000)));
935 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80000000)));
937 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00400000)));
938 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80400000)));
939 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00000001)));
940 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80000001)));
1005 StrictMath.min(1.0f, Float.NaN);
1006 Assert.assertTrue(Float.isNaN(StrictMath.min(1.0f, Float.NaN)));
1007 Assert.assertTrue(Float.isNaN(StrictMath.min(Float.NaN, 1.0f)));
1014 Assert.assertEquals(StrictMath.min(0.0f, Float.MAX_VALUE), 0.0f);
1015 Assert.assertEquals(StrictMath.min(Float.MIN_VALUE, 0.0f), 0.0f);
1016 Assert.assertEquals(StrictMath.min(Float.MIN_VALUE, Float.MAX_VALUE), Float.MIN_VALUE);
1020 StrictMath.max(1.0f, Float.NaN);
1021 Assert.assertTrue(Float.isNaN(StrictMath.max(1.0f, Float.NaN)));
1022 Assert.assertTrue(Float.isNaN(StrictMath.max(Float.NaN, 1.0f)));
1029 Assert.assertEquals(StrictMath.max(0.0f, Float.MAX_VALUE), Float.MAX_VALUE);
1030 Assert.assertEquals(StrictMath.max(Float.MIN_VALUE, 0.0f), Float.MIN_VALUE);
1031 Assert.assertEquals(StrictMath.max(Float.MIN_VALUE, Float.MAX_VALUE), Float.MAX_VALUE);
1169 Assert.assertEquals(StrictMath.round(Float.intBitsToFloat(0x3EFFFFFF)), (int)+0.0f);
1171 Assert.assertEquals(StrictMath.round(Float.NaN), (int)+0.0f);
1174 Assert.assertEquals(StrictMath.round(Float.POSITIVE_INFINITY), Integer.MAX_VALUE);
1175 Assert.assertEquals(StrictMath.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE);
1179 Float.floatToRawIntBits(-1.0f);
1180 Assert.assertEquals(Float.floatToRawIntBits(-1.0f), 0xbf800000);
1181 Assert.assertEquals(Float.floatToRawIntBits(0.0f), 0);
1182 Assert.assertEquals(Float.floatToRawIntBits(1.0f), 0x3f800000);
1183 Assert.assertEquals(Float.floatToRawIntBits(Float.NaN), 0x7fc00000);
1184 Assert.assertEquals(Float.floatToRawIntBits(Float.POSITIVE_INFINITY), 0x7f800000);
1185 Assert.assertEquals(Float.floatToRawIntBits(Float.NEGATIVE_INFINITY), 0xff800000);
1189 Float.intBitsToFloat(0xbf800000);
1190 Assert.assertEquals(Float.intBitsToFloat(0xbf800000), -1.0f);
1191 Assert.assertEquals(Float.intBitsToFloat(0x00000000), 0.0f);
1192 Assert.assertEquals(Float.intBitsToFloat(0x3f800000), 1.0f);
1193 Assert.assertEquals(Float.intBitsToFloat(0x7fc00000), Float.NaN);
1194 Assert.assertEquals(Float.intBitsToFloat(0x7f800000), Float.POSITIVE_INFINITY);
1195 Assert.assertEquals(Float.intBitsToFloat(0xff800000), Float.NEGATIVE_INFINITY);