You must use modulo
and ToString(string Format)
, so
var resultString = (number % 100).ToString("#00.00");
is the correct operation
4
solved C# Limit left decimal places
You must use modulo
and ToString(string Format)
, so
var resultString = (number % 100).ToString("#00.00");
is the correct operation
4
solved C# Limit left decimal places