<p class="card"> Credit Limit: <b style="color: #00e500 ;"> $@Model.CreditLimit.ToString().ToLocaleString()</b> </p>
I am changing an Int to a String using ToString()
Then I am trying to format the number I am getting using ToLocaleString()
. The number looks like this: 80567. I am trying to format it to look like this: 80,567.
The error I get is "string does not contain a definition for "ToLocaleString"
Thoughts?
EDIT: Going to have this issue closed. Found where my error resided. Please refer to this link if you have any questions on the topic: Link to StackOverFlow issue