I am a noob trying to learn c#. I was following a turorial and all was fine till I tried to replicate a "double operation" that was on the video. The problem was with the results. I dont know why, after I added the two numbers, the result that should be a double, results in a int that iscompletely wrong. (its not just the lack of the "dot" the operation is done incorrectly).
Am I such a dummy that I wrote the code incorrectly various times or is the Visual Studio lacking something? Can someone please help this noob here.
CodePudding user response:
I think this is likely an issue with localisation. If you try entering 3,6 rather than 3.6 what do you get?
The system is treating it as 36, not 3.6