Java Decimal decimalScalingBase(double value)

Here you can find the source of decimalScalingBase(double value)

Description

decimal Scaling Base

License

Apache License

Declaration

public static double decimalScalingBase(double value) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static double decimalScalingBase(double value) {
        long b = 1;
        while (b <= value) {
            b *= 10;//from   w  w w .  j av a  2 s . com
        }
        return b;
    }
}

Related

  1. decimalPlaces(double value, int precision)
  2. decimalPlaces(double value, int precision)
  3. decimalRound(double value, int roundPlaces)
  4. decimalScale(double value, double max)
  5. decimalScaleTime(int value, int max)
  6. decimalToChar(int i)