Search:

Type: Posts; User: helloworld922

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,472

    Re: Question about rounding

    Ah, true that there's no guarantee of the ordering of the bits, only that they must be able to hold those values :P

    most languages I know of don't actually manipulate floating point numbers (or...
  2. Replies
    7
    Views
    1,472

    Re: Question about rounding

    Well, technically the Java Language Specifications spells out specifically how a double and float are represented. If the IEEE754 standard changes, then the Java Language Specification will just not...
  3. Replies
    7
    Views
    1,472

    Re: Question about rounding

    Un-optimized, and probably overkill. However, it will maintain all exponents correctly, and works with the two infinities and NaN.

    public static double round(double original_value)
    {
    long...
Results 1 to 3 of 3