Java Number Round roundSec(long milli)

Here you can find the source of roundSec(long milli)

Description

round Sec

License

Mozilla Public License

Declaration

public static long roundSec(long milli) 

Method Source Code

//package com.java2s;
//License from project: Mozilla Public License 

public class Main {
    public static long roundSec(long milli) {
        return ((milli + 500L) / 1000L) * 1000L;
    }//from  w  w w  .j  av a  2  s . c  o  m
}

Related

  1. roundRadian(double rad)
  2. roundRobin(final int value)
  3. roundScale(double value, int scale)
  4. roundScale2(Number number)
  5. roundSec(int sec)
  6. roundSig(double d, int n)
  7. roundSignificant(double d, int numDigit, boolean keepInteger)
  8. roundSignificant(double value)
  9. roundSimpleNumberUnits(final long graphDefaultUnit)