Remove $ from .ToString(“{0:C}”) formatted number

Use N instead of C as your format specifier:

@String.Format("{0:N}", Model.Price)

“C” or “c” Currency Result: A currency value.

123.456 (“C”, en-US) -> $123.46

“N” or “n” Number Result: Integral and decimal digits, group separators, and a decimal

1234.567 (“N”, en-US) -> 1,234.57

I.e. you were getting a currency symbol because you were asking for one.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)