Hexadecimal string to integer
Stijn Herreman
stijn.herreman at telenet.be
Wed Aug 3 09:44:00 PDT 2011
On 3/08/2011 2:32, Johann MacDonagh wrote:
> On 8/2/2011 8:17 PM, Stijn Herreman wrote:
>> std.conv does not support conversion from a hexadecimal string to an
>> integer. Is there a technical reason for this limitation?
>>
>> This is the best I could do, can it be improved still?
>> int i = to!int(parse!float("0x1ap0"));
>
> parse!int("1a", 16);
I tried multiple combinations but not that one, thanks.
More information about the Digitalmars-d-learn
mailing list