Converting char to int

Caeadas mitch.m13 at hotmail.com
Tue Dec 31 22:21:04 PST 2013


I hope you'll forgive my asking an overly easy question: I've
been searching for an answer and having trouble finding one, and
am getting frustrated.

My issue is this: I'm trying to convert character types to
integers using to!int from std.conv, and I'm getting, for
example, '0'->48, '1'->49, etc. It seems like there should be a
simple way around this, but it's eluding me.


More information about the Digitalmars-d-learn mailing list