Java Double to doubleToChar(double d, char defaultValue)

Here you can find the source of doubleToChar(double d, char defaultValue)

Description

double To Char

License

LGPL

Declaration

public static char doubleToChar(double d, char defaultValue) 

Method Source Code

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

public class Main {
    public static char doubleToChar(double d, char defaultValue) {
        if (d >= Character.MIN_VALUE && d <= Character.MAX_VALUE) {
            return (char) d;
        }//from  w ww  .ja v  a 2  s  .com
        return defaultValue;
    }
}

Related

  1. doubleTo2DArray(double[] array)
  2. doubleToBasicType(double d, Class clazz)
  3. doubleToBinaryString(double value)
  4. doubleToBits(double in, double min, double max, int numBits, int splits)
  5. doubleToBits(double num)
  6. doubleToDoubleArray(double... a)
  7. doubleToFloatArray(double[] dArray)
  8. doubleToFloatArray(double[] doubles)
  9. doubleToFloatMatrix(double[][] matrix)