Hmm, weird. I was messing around with the source changing things and recompiling. I then set it back to what it was originally and now Local calc:float = (2^num) gives correct results. 8.000000 for 2^3. But it still gives incorrect results if I use calc:int = (2^num). When I had calc as a float before making changes, it resulted in 7.9999999