Lines Matching refs:Double
561 Math.min(1.0d, Double.NaN);
562 Assert.assertTrue(Double.isNaN(Math.min(1.0d, Double.NaN)));
563 Assert.assertTrue(Double.isNaN(Math.min(Double.NaN, 1.0d)));
570 Assert.assertEquals(Math.min(0.0d, Double.MAX_VALUE), 0.0d);
571 Assert.assertEquals(Math.min(Double.MIN_VALUE, 0.0d), 0.0d);
572 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MAX_VALUE), Double.MIN_VALUE);
574 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MIN_VALUE), Double.MIN_VALUE);
578 Math.max(1.0d, Double.NaN);
579 Assert.assertTrue(Double.isNaN(Math.max(1.0d, Double.NaN)));
580 Assert.assertTrue(Double.isNaN(Math.max(Double.NaN, 1.0d)));
587 Assert.assertEquals(Math.max(0.0d, Double.MAX_VALUE), Double.MAX_VALUE);
588 Assert.assertEquals(Math.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
589 Assert.assertEquals(Math.max(Double.MIN_VALUE, Double.MAX_VALUE), Double.MAX_VALUE);
591 Assert.assertEquals(Math.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
592 Assert.assertEquals(Math.max(Double.MIN_VALUE, Double.MIN_VALUE), Double.MIN_VALUE);
620 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
621 Double.longBitsToDouble(0x432FFFFFFFFFFFFEl), 0.0);
623 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
624 Double.longBitsToDouble(0x4330000000000000l), 0.0);
626 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x4330000000000000l)),
627 Double.longBitsToDouble(0x4330000000000000l), 0.0);
629 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
630 Double.longBitsToDouble(0x433FFFFFFFFFFFFFl), 0.0);
632 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x4340000000000000l)),
633 Double.longBitsToDouble(0x4340000000000000l), 0.0);
635 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
636 Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl), 0.0);
638 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43E0000000000000l)),
639 Double.longBitsToDouble(0x43E0000000000000l), 0.0);
641 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43F0000000000000l)),
642 Double.longBitsToDouble(0x43F0000000000000l), 0.0);
644 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
645 Double.longBitsToDouble(0xC32FFFFFFFFFFFFCl), 0.0);
647 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
648 Double.longBitsToDouble(0xC32FFFFFFFFFFFFEl), 0.0);
650 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC330000000000000l)),
651 Double.longBitsToDouble(0xC330000000000000l), 0.0);
653 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
654 Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl), 0.0);
656 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC340000000000000l)),
657 Double.longBitsToDouble(0xC340000000000000l), 0.0);
659 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
660 Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl), 0.0);
662 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3E0000000000000l)),
663 Double.longBitsToDouble(0xC3E0000000000000l), 0.0);
665 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3F0000000000000l)),
666 Double.longBitsToDouble(0xC3F0000000000000l), 0.0);
667 Assert.assertEquals(Math.ceil(Double.NaN), Double.NaN, 0.0);
668 Assert.assertEquals(Math.ceil(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
669 Assert.assertEquals(Math.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
687 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
688 Double.longBitsToDouble(0x432FFFFFFFFFFFFCl), 0.0);
690 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
691 Double.longBitsToDouble(0x432FFFFFFFFFFFFEl), 0.0);
693 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x4330000000000000l)),
694 Double.longBitsToDouble(0x4330000000000000l), 0.0);
696 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
697 Double.longBitsToDouble(0x433FFFFFFFFFFFFFl), 0.0);
699 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x4340000000000000l)),
700 Double.longBitsToDouble(0x4340000000000000l), 0.0);
702 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
703 Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl), 0.0);
705 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43E0000000000000l)),
706 Double.longBitsToDouble(0x43E0000000000000l), 0.0);
708 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43F0000000000000l)),
709 Double.longBitsToDouble(0x43F0000000000000l), 0.0);
711 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
712 Double.longBitsToDouble(0xC32FFFFFFFFFFFFEl), 0.0);
714 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
715 Double.longBitsToDouble(0xC330000000000000l), 0.0);
717 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC330000000000000l)),
718 Double.longBitsToDouble(0xC330000000000000l), 0.0);
720 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
721 Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl), 0.0);
723 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC340000000000000l)),
724 Double.longBitsToDouble(0xC340000000000000l), 0.0);
726 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
727 Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl), 0.0);
729 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3E0000000000000l)),
730 Double.longBitsToDouble(0xC3E0000000000000l), 0.0);
732 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3F0000000000000l)),
733 Double.longBitsToDouble(0xC3F0000000000000l), 0.0);
734 Assert.assertEquals(Math.floor(Double.NaN), Double.NaN, 0.0);
735 Assert.assertEquals(Math.floor(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
736 Assert.assertEquals(Math.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
757 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
758 Double.longBitsToDouble(0x432FFFFFFFFFFFFCl), 0.0);
760 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
761 Double.longBitsToDouble(0x4330000000000000l), 0.0);
763 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x4330000000000000l)),
764 Double.longBitsToDouble(0x4330000000000000l), 0.0);
766 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
767 Double.longBitsToDouble(0x433FFFFFFFFFFFFFl), 0.0);
769 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x4340000000000000l)),
770 Double.longBitsToDouble(0x4340000000000000l), 0.0);
772 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
773 Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl), 0.0);
775 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43E0000000000000l)),
776 Double.longBitsToDouble(0x43E0000000000000l), 0.0);
778 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43F0000000000000l)),
779 Double.longBitsToDouble(0x43F0000000000000l), 0.0);
781 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
782 Double.longBitsToDouble(0xC32FFFFFFFFFFFFCl), 0.0);
784 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
785 Double.longBitsToDouble(0xC330000000000000l), 0.0);
787 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC330000000000000l)),
788 Double.longBitsToDouble(0xC330000000000000l), 0.0);
790 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
791 Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl), 0.0);
793 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC340000000000000l)),
794 Double.longBitsToDouble(0xC340000000000000l), 0.0);
796 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
797 Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl), 0.0);
799 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3E0000000000000l)),
800 Double.longBitsToDouble(0xC3E0000000000000l), 0.0);
802 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3F0000000000000l)),
803 Double.longBitsToDouble(0xC3F0000000000000l), 0.0);
804 Assert.assertEquals(Math.rint(Double.NaN), Double.NaN, 0.0);
805 Assert.assertEquals(Math.rint(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
806 Assert.assertEquals(Math.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
832 Assert.assertEquals(Math.round(Double.NaN), (long)+0.0d);
835 Assert.assertEquals(Math.round(Double.longBitsToDouble(0x43F0000000000000l)),
837 Assert.assertEquals(Math.round(Double.longBitsToDouble(0xC3F0000000000000l)),
839 Assert.assertEquals(Math.round(Double.POSITIVE_INFINITY), Long.MAX_VALUE);
840 Assert.assertEquals(Math.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE);
882 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0x7FF4000000000000l)));
883 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0xFFF4000000000000l)));
885 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0x7FF8000000000000l)));
886 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0xFFF8000000000000l)));
888 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x7FF0000000000000l)));
889 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0xFFF0000000000000l)));
891 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x7FE0000000000000l)));
892 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0xFFE0000000000000l)));
893 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0010000000000000l)));
894 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8010000000000000l)));
896 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0000000000000000l)));
897 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8000000000000000l)));
899 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0008000000000000l)));
900 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8008000000000000l)));
901 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0000000000000001l)));
902 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8000000000000001l)));
932 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FF4000000000000l)));
933 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFF4000000000000l)));
935 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FF8000000000000l)));
936 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFF8000000000000l)));
938 Assert.assertTrue(Double.isInfinite(Double.longBitsToDouble(0x7FF0000000000000l)));
939 Assert.assertTrue(Double.isInfinite(Double.longBitsToDouble(0xFFF0000000000000l)));
941 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FE0000000000000l)));
942 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFE0000000000000l)));
943 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0010000000000000l)));
944 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8010000000000000l)));
946 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0000000000000000l)));
947 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8000000000000000l)));
949 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0008000000000000l)));
950 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8008000000000000l)));
951 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0000000000000001l)));
952 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8000000000000001l)));
1072 StrictMath.min(1.0d, Double.NaN);
1073 Assert.assertTrue(Double.isNaN(StrictMath.min(1.0d, Double.NaN)));
1074 Assert.assertTrue(Double.isNaN(StrictMath.min(Double.NaN, 1.0d)));
1081 Assert.assertEquals(StrictMath.min(0.0d, Double.MAX_VALUE), 0.0d);
1082 Assert.assertEquals(StrictMath.min(Double.MIN_VALUE, 0.0d), 0.0d);
1083 Assert.assertEquals(StrictMath.min(Double.MIN_VALUE, Double.MAX_VALUE), Double.MIN_VALUE);
1087 StrictMath.max(1.0d, Double.NaN);
1088 Assert.assertTrue(Double.isNaN(StrictMath.max(1.0d, Double.NaN)));
1089 Assert.assertTrue(Double.isNaN(StrictMath.max(Double.NaN, 1.0d)));
1096 Assert.assertEquals(StrictMath.max(0.0d, Double.MAX_VALUE), Double.MAX_VALUE);
1097 Assert.assertEquals(StrictMath.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
1098 Assert.assertEquals(StrictMath.max(Double.MIN_VALUE, Double.MAX_VALUE), Double.MAX_VALUE);
1125 Assert.assertEquals(StrictMath.ceil(Double.NaN), Double.NaN, 0.0);
1126 Assert.assertEquals(StrictMath.ceil(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1127 Assert.assertEquals(StrictMath.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1144 Assert.assertEquals(StrictMath.floor(Double.NaN), Double.NaN, 0.0);
1145 Assert.assertEquals(StrictMath.floor(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1146 Assert.assertEquals(StrictMath.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1163 Assert.assertEquals(StrictMath.rint(Double.NaN), Double.NaN, 0.0);
1164 Assert.assertEquals(StrictMath.rint(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1165 Assert.assertEquals(StrictMath.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1191 Assert.assertEquals(StrictMath.round(Double.NaN), (long)+0.0d);
1194 Assert.assertEquals(StrictMath.round(Double.longBitsToDouble(0x43F0000000000000l)),
1196 Assert.assertEquals(StrictMath.round(Double.longBitsToDouble(0xC3F0000000000000l)),
1198 Assert.assertEquals(StrictMath.round(Double.POSITIVE_INFINITY), Long.MAX_VALUE);
1199 Assert.assertEquals(StrictMath.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE);
1260 Double.doubleToRawLongBits(-1.0);
1261 Assert.assertEquals(Double.doubleToRawLongBits(-1.0), 0xbff0000000000000L);
1262 Assert.assertEquals(Double.doubleToRawLongBits(0.0), 0x0000000000000000L);
1263 Assert.assertEquals(Double.doubleToRawLongBits(1.0), 0x3ff0000000000000L);
1264 Assert.assertEquals(Double.doubleToRawLongBits(Double.NaN), 0x7ff8000000000000L);
1265 Assert.assertEquals(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY), 0x7ff0000000000000L);
1266 Assert.assertEquals(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), 0xfff0000000000000L);
1270 Double.longBitsToDouble(0xbff0000000000000L);
1271 Assert.assertEquals(Double.longBitsToDouble(0xbff0000000000000L), -1.0);
1272 Assert.assertEquals(Double.longBitsToDouble(0x0000000000000000L), 0.0);
1273 Assert.assertEquals(Double.longBitsToDouble(0x3ff0000000000000L), 1.0);
1274 Assert.assertEquals(Double.longBitsToDouble(0x7ff8000000000000L), Double.NaN);
1275 Assert.assertEquals(Double.longBitsToDouble(0x7ff0000000000000L), Double.POSITIVE_INFINITY);
1276 Assert.assertEquals(Double.longBitsToDouble(0xfff0000000000000L), Double.NEGATIVE_INFINITY);