java - Parsing a String to 2 Decimal Places to Double -
here's string
37900
that receive through api.
however real value of item in double 379.00
also there might items can in same format that. let's say
120000, real value of 1 1200.00
how parse that?
string numberasstring = "15,000"; double number = double.parsedouble(numberasstring); number = number/100;
here string double. dividing format want.
Comments
Post a Comment