I'm looking for a way to properly format and display a decimal value within my view.
For instance: 123456789,9876
should be 123 456 789,99
.
Sometimes I want to display it like 123 millions
.
Is there any way to have such rules when displaying decimal values into the View instead of having to write it like this?
<td align="right">
@((item.Amount / 1000).ToString("### ###")) k€
</td>
<td align="right">
@((item.Ponderation * 100).ToString("f0")) %
</td>