c# - convert to double cutting off zeroes -


i have array contains product names , prices such thingy25.00 when run line of code below 25 , zeroes gone. need keep 2 decimal point after period 25.00.

    price[i] = convert.todouble(product[i].substring(7, 4)); 

it once format output this:

var s = price[i].tostring("#,##0.00"); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -