Author: soundarr
Posted: Wed May 11, 2016 8:13 pm (GMT 5.5)
Thanks Prino. My apologies to you and all for giving an example of 10 instead of 10000 which I actually used. Please excuse me.
When I used 10000 for B. It divided 10000 by 0.01 which will be 1000000. But since A is 15,9 which leaves only 6 bytes for whole numbers thus unable to hold the 7 digit result. This results in a decimal divide exception which also raises a zero divide exception causing the confusion.
So, it was not a zero divide actually but the system did raise it.
Regards,
Soundar
Posted: Wed May 11, 2016 8:13 pm (GMT 5.5)
Thanks Prino. My apologies to you and all for giving an example of 10 instead of 10000 which I actually used. Please excuse me.
When I used 10000 for B. It divided 10000 by 0.01 which will be 1000000. But since A is 15,9 which leaves only 6 bytes for whole numbers thus unable to hold the 7 digit result. This results in a decimal divide exception which also raises a zero divide exception causing the confusion.
So, it was not a zero divide actually but the system did raise it.
Regards,
Soundar