The below should return 1/4 or 0.25 but instead returns 0.
a = Pow(2.0,-2.0)
Debug a
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
Power operator gives incorrect result
Re: Power operator gives incorrect result
Define a as float or double:
Code: Select all
EnableExplicit
Global a.f
a = Pow(2.0,-2.0)
Debug a
End
Re: Power operator gives incorrect result
Ok great thanksMijikai wrote: ↑Fri Sep 24, 2021 11:16 pm Define a as float or double:Code: Select all
EnableExplicit Global a.f a = Pow(2.0,-2.0) Debug a End