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

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -