PHP's bcmath in bmax?

BlitzMax Forums/BlitzMax Programming/PHP's bcmath in bmax?

The thing I'm stuck on, and I mean seriously stuck on, is this:

$r = bcadd($r, bcmul(hexdec($x[$p]), bcpow(16, $q - $p)));


How would I even begin to write that with your module? I've tried breaking it up in seperate pieces, but with frustrating results :) I'm sure, again, that I'm missing something basic?

The bcpow part (bcpow(16, $q - $p)));), as I understand it, should be something like this:
		Local sixteen:TMAPM = New TMAPM.Create("16")
		Local bcpow:TMAPM = New TMAPM
		bcpow = bcpow.pow(sixteen,q-p)
		Print bcpow.tostring()