Custom Exponents

Malkierian rhydonj at gmail.com
Sat Dec 14 21:34:52 PST 2013


On Sunday, 15 December 2013 at 05:22:47 UTC, Malkierian wrote:
> Alright, so I'm trying to do hex string to integer conversion, 
> but I can't for the live of me find how to do exponent 
> calculation in D.  Java has a Math.pow() function that allows 
> you to specify the base and the exponent, but all I've seen in 
> D's libraries are functions that allow you to only specify the 
> exponent and does it on a predetermined base, such as 2, e or 
> 10.
>  I need 16 for the base.

Well, I made my own pow function to use for now, but it seems 
kind of stupid to me that that's not in the standard library.  I 
must be missing something.


More information about the Digitalmars-d-learn mailing list