문제

I'm having problems with dividing two float values that appears to be a simple process.

http://imgur.com/EZz5Q1Z

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top