i am doing very basic calculations and getting the weird result when i am comparing double values in if.. statement. See the screenshot attached.

I marked the variable value with Red markers. You can see the value of variable totalSliceValue is 100 and when i compared the value with 100.0 it return TRUE, but 100 is not greater than 100.
Can anybody explain this why i am getting this. Is there any bug in my code or it is an issue with the compiler.
Thanks in advance!