Java BigDecimal Value Check isDouble(BigDecimal number)

Here you can find the source of isDouble(BigDecimal number)

Description

is Double

License

Apache License

Declaration

private static boolean isDouble(BigDecimal number) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    private static boolean isDouble(BigDecimal number) {
        double doubleValue = number.doubleValue();
        return (doubleValue != Double.NEGATIVE_INFINITY) && (doubleValue != Double.POSITIVE_INFINITY);
    }//from   w  ww  . j  a va 2 s . c o m
}

Related

  1. isAbsBetweenZeroAndOne(BigDecimal newValue)
  2. isAllBlank(BigDecimal[] values)
  3. isBetweenAAndB(final BigDecimal target, final BigDecimal a, final BigDecimal b)
  4. isBlank(BigDecimal value)
  5. isDivisible(BigDecimal num1, BigDecimal num2)
  6. isDoubleOverFlow(final BigDecimal decimal)
  7. isExact(final BigDecimal bd)
  8. isFirstBiggerThanSecond(final BigDecimal first, final BigDecimal second)
  9. isFirstEqualToSecond(final BigDecimal first, final BigDecimal second)