You put your breakpoint on the line containing the division, which means the debugger is showing the value of the variable before the division takes place. Step to the next instruction to see the correct value.
trouble with the division of two floats C++/CLI
Question
I'm having problems with dividing two float values that appears to be a simple process.
the floats l and larg have the values of 20 and 10, which should result in a n1 value of 2. That's not the case though.
Thanks in advance.
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow