Example usage for org.apache.commons.lang3.mutable MutableDouble toDouble

List of usage examples for org.apache.commons.lang3.mutable MutableDouble toDouble

Introduction

In this page you can find the example usage for org.apache.commons.lang3.mutable MutableDouble toDouble.

Prototype

public Double toDouble() 

Source Link

Document

Gets this mutable as an instance of Double.

Usage

From source file:com.arksoft.epamms.ZGlobal1_Operation.java

public Double SetDecimalPrecisionRounded(Double pdDecimalValue, int ulNumberOfDecimals) {
    StringBuilder sb = new StringBuilder(ulNumberOfDecimals > 0 ? ulNumberOfDecimals + 5 : 25);

    SysConvertDecimalToString(pdDecimalValue, sb, (int) ulNumberOfDecimals);
    MutableDouble d = new MutableDouble(pdDecimalValue);
    SysConvertStringToDecimal(sb.toString(), d);
    return d.toDouble();

}

From source file:com.quinsoft.swauopencuas.ZGLOBAL1_Operation.java

public Double SetDecimalPrecisionRounded(Double pdDecimalValue, int ulNumberOfDecimals) {
    StringBuilder sb = new StringBuilder(ulNumberOfDecimals > 0 ? ulNumberOfDecimals + 5 : 25);

    SysConvertDecimalToString(pdDecimalValue, sb, ulNumberOfDecimals);
    MutableDouble d = new MutableDouble(pdDecimalValue);
    SysConvertStringToDecimal(sb.toString(), d);
    return d.toDouble();

}