Page 1 of 1

Exponentiation (beginner)

Posted: Sat Aug 26, 2006 10:57 am
by Trond
If you need to do something like Pow() but with larger numbers than you can a float can hold, you can use this macro:

Code: Select all

Macro ExpLtoQ(b, e)
  res64.q = 1
  For i.l = 0 To e-1
    res64*b
  Next
EndMacro
It's not absolutely fast, but it's does work.