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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -