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
Post a Comment