I have a product of two numbers
double resultado = XN1 * XN;
but that result would like to add a 0.resultado, I do with this method
String convertirdecimal(String cad) {
String cad2 = "0." + cad;
return cad2;
}
When that happened the chain that would be the result, but then when I returned the result that transformed it into a double
, the problem comes when it is a result as 170
that adding the 0.170
to transform it into double
remains 0.17
and I do not know why, I do not know if there would be a better way to add the 0.
to the result