Sometimes when I’m alone in my room I write software... it’s for fun. I’m a father but I’m not like all up in your face about it. | 🤘 Metal 🤘| Pro-Am Chef
Location
Denver, CO
Education
Not really
Work
Full-Stack Developer / DevOps Strategist at Envision Radiology
The C# compiler is permitted to give either answer to that question at any time for any reason. You can compile the same program twice and get different answers. You can ask the question twice in the same program and get two different answers.
Other than that it's just the usual IEEE 754 weirdness.
JavaScript's sin was to base its core numeric type entirely on a floating point representation.
PS: And how well do you think will a client-side Blazor app be running on something like a Moto G4?
Don't get me wrong, client-side Blazor will be a boon for MS shops for implementing internal enterprise web apps - but the public web is about reach and that means dealing with the lowest common denominators in terms of client device computing power and connection quality.
As it is the current JS ecosystems will need to go on a serious diet to keep the web relevant.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
And forget about stuff like
[] + [] = ?
{} + [] = ?
[] + {} = ?
0.1 + 0.2 = .300000000000004
1+2 = 3
1+2+3 = 6
1+2+3+"4"= "10"
Stones and glass houses.
Other than that it's just the usual IEEE 754 weirdness.
What Every Programmer Should Know About Floating-Point Arithmetic
JavaScript's sin was to base its core numeric type entirely on a floating point representation.
PS: And how well do you think will a client-side Blazor app be running on something like a Moto G4?
Don't get me wrong, client-side Blazor will be a boon for MS shops for implementing internal enterprise web apps - but the public web is about reach and that means dealing with the lowest common denominators in terms of client device computing power and connection quality.
As it is the current JS ecosystems will need to go on a serious diet to keep the web relevant.