Java Number Round RoundFullUp(double d)

Here you can find the source of RoundFullUp(double d)

Description

Adds .5 and rounds the result...this should round up to the full integer anything <.4

License

Open Source License

Parameter

Parameter Description
d Value to round up to the next full integer

Return

rounded integer

Declaration

public static double RoundFullUp(double d) 

Method Source Code

//package com.java2s;

public class Main {
    /***//ww  w  .  j ava  2s  .c  o m
     * Adds .5 and rounds the result...this should round up to the full integer anything <.4 
     * @param d Value to round up to the next full integer
     * @return rounded integer
     */
    public static double RoundFullUp(double d) {
        return Math.round(.4 + d);
    }
}

Related

  1. roundFileLength(long nbytes)
  2. roundFloat(float value, int afterDecimalPoint)
  3. roundFloatToPlace(float f, int place)
  4. roundFloatToUnitInverse(final float graphValue, final float graphUnit)
  5. roundFormat(final int numPrec, final double number)
  6. roundHalfAway(double d)
  7. RoundHalfUp(double d)
  8. roundIfClose(double val)
  9. Rounding(double d, int i)