c# double value with 2 decimal places

C#
inputValue = Math.Round(inputValue, 2);
Source

Also in C#: