Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: Fortran-lik...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 16019 of 16078
Post > Topic >>

Re: Fortran-like number formatting

by ram@[EMAIL PROTECTED] (Stefan Ram) Apr 25, 2008 at 02:30 AM

ram@[EMAIL PROTECTED]
 (Stefan Ram) writes:
>Either Sun Microsystems, Inc. expects the programmer to look
>into ISO/IEC 9899:1999 (E) for »%g«, or there is a more
>detailed description by Sun Microsystems, Inc., which I just
>have not found yet.

  Now, I have found it:

      »After rounding for the precision, the formatting of the
      resulting magnitude m depends on its value. 

      If m is greater than or equal to 10^-4 but less than
      10^precision then it is represented in decimal format. 

      If m is less than 10^-4 or greater than or equal to
      10^precision, then it is represented in computerized
      scientific notation. 

      The total number of significant digits in m is equal to
      the precision. If the precision is not specified, then the
      default value is 6. If the precision is 0, then it is
      taken to be 1.«

http://download.java.net/jdk7/docs/api/java/util/Formatter.html




 4 Posts in Topic:
Fortran-like number formatting
Roedy Green <see_websi  2008-04-25 01:14:30 
Re: Fortran-like number formatting
ram@[EMAIL PROTECTED] (S  2008-04-25 01:45:22 
Re: Fortran-like number formatting
ram@[EMAIL PROTECTED] (S  2008-04-25 02:30:39 
Re: Fortran-like number formatting
Roedy Green <see_websi  2008-04-25 10:11:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:38:10 CDT 2008.