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

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

XMLWordPrintable

    • 1.1fcs
    • sparc
    • solaris_2.5

            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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: