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

Add a constant for the Golden Ratio

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 7
    • 5.0
    • core-libs
    • x86
    • windows_2000

      A DESCRIPTION OF THE REQUEST :
      It is often desirable to use the Golden Ratio in programming, e.g. for defining the default size of windows.

      More information about the Golden Ratio can be found at:
      http://en.wikipedia.org/wiki/Golden_ratio

      Please add a constant 'java.lang.Math.GOLDEN_RATIO' to support standardised use of this number.

      JUSTIFICATION :
      The Golden Ratio is a very useful number for many things.
      While its use may not be as widespread as PI and E, it would still be nice to have a standard value for the number in the API.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Double-precision contant 'GOLDEN_RATIO' in class java.lang.Math
      ###@###.### 2005-03-15 23:42:30 GMT

            darcy Joe Darcy
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: