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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: docs
    • Subcomponent:
    • Resolved In Build:
      1.1fcs
    • CPU:
      sparc
    • OS:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: