Tatb
New member
- Joined
- May 11, 2021
- Messages
- 1
- Programming Experience
- Beginner
This code for test on both vs2017 (Console .Net Framework) and vs2019 (Console .Net Core) .
Output :
Why it is?
Should I keep using .Net Core? or I just avoid double type. or, Can I config IDE to fix them?
code:
static void Main(string[] args)
{
double a = 0.3d;
double b = 3d;
double c = a / basdf;
Console.WriteLine($"a={a}, b={b}");
Console.WriteLine(c);
Console.ReadKey();
}
vs2017output:
a=0.3, b=3
c=0.1
vs2019output:
a=0.3, b=3
c=0.09999999999999999
Should I keep using .Net Core? or I just avoid double type. or, Can I config IDE to fix them?