Java BigDecimal getDateFromRank(BigDecimal rank)

Here you can find the source of getDateFromRank(BigDecimal rank)

Description

get Date From Rank

License

Apache License

Declaration

public static Date getDateFromRank(BigDecimal rank) 

Method Source Code

//package com.java2s;
/*//from   ww w  .  jav a2s.  c  om
 * Copyright 2007 Open Source Applications Foundation
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.math.BigDecimal;
import java.util.Date;

public class Main {
    public static Date getDateFromRank(BigDecimal rank) {
        return new Date(rank.negate().scaleByPowerOfTen(3).longValue());
    }
}

Related

  1. getAsDouble(BigDecimal value)
  2. getBalance(BigDecimal balance)
  3. getBtcToBuy(BigDecimal ask, BigDecimal bid, BigDecimal fee, BigDecimal scalpAmount)
  4. getByteArrayFromBigDecimalArray(Object value)
  5. getConversionUsdBased(final String destinycode, final BigDecimal amount, final BigDecimal usdBasedBaseRate, BigDecimal usdBasedDestinyRate)
  6. getDepositAmount(Boolean isReceipt, BigDecimal amount)
  7. getDigits(BigDecimal value)
  8. getDistance(BigDecimal sourceLatitude, BigDecimal sourceLongitude, BigDecimal destLatitude, BigDecimal destLongitude)
  9. getDividedBigDecimal(final int nDividend, final int nDivisor)