vb.net round to two decimal places and keep decimal places code example Example: c# double value with 2 decimal places inputValue = Math.Round(inputValue, 2);