Hi,
I'm doing some simple calculations and got unexpectedly an "infinity" result.
I've got some input fields and some output fields in a few forms.
The calculation that is not working is a simple division:
Scpi = Mcp / Ws
I have a button that I click in order to get calculations done.
When I press that button once, Scpi gets the correct result.
But if I press that button again, Scpi gets the value "infinity"; the variables Mcp and Ws have the same value (Mcp=20; Ws=0.05; I verified that by debugging).
I attached two pictures showing Scpi result after the first run and after the second run.
I've checked every line of the program and found no reason for getting the infinity result since Mcp and Ws are not changed.
Any idea of what could cause that strange behavior?
JGM
I'm doing some simple calculations and got unexpectedly an "infinity" result.
I've got some input fields and some output fields in a few forms.
The calculation that is not working is a simple division:
Scpi = Mcp / Ws
I have a button that I click in order to get calculations done.
When I press that button once, Scpi gets the correct result.
But if I press that button again, Scpi gets the value "infinity"; the variables Mcp and Ws have the same value (Mcp=20; Ws=0.05; I verified that by debugging).
I attached two pictures showing Scpi result after the first run and after the second run.
I've checked every line of the program and found no reason for getting the infinity result since Mcp and Ws are not changed.
Any idea of what could cause that strange behavior?
JGM