f-angi
3/24/2016 - 9:45 AM

Casting a float to double forcing a precision of 2 digits

Casting a float to double forcing a precision of 2 digits

import org.apache.commons.math3.util.Precision;

Precision.round(floatNumber, 2)