Answers for "c# decimal vs double"

C#
10

c# double value with 2 decimal places

inputValue = Math.Round(inputValue, 2);
Posted by: Guest on March-06-2020
4

format double to 2 decimal places in c#

priceLbl.Text = price.ToString("0.##");
Posted by: Guest on September-16-2020
1

c# decimal vs double

Use decimal for manmade concepts like currency
Use double/float for naturally-occuring values like temperature
Posted by: Guest on September-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language