Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1237875

Doc comment for java.lang.Math.PI uses float, not double

    XMLWordPrintable

Details

    • 1.1fcs
    • sparc
    • solaris_2.5

    Backports

      Description

            The declaration for java.lang.Math.PI is

            /**
             * The float representation of the value Pi. Pi is equivalent
             * to 3.14159265358979323846f in Java.
             */
            public static final double PI = 3.14159265358979323846;

        The doc comment says that PI is a float, with a value with a trailing `f',
        when in fact PI is a double, and the value is a double.

            Similarly for java.lang.Math.E.

        ... peter 2/9/96

        Attachments

          Issue Links

            Activity

              People

                sharonz Sharon Zakhour (Inactive)
                pbk Peter Kessler
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: