Language support for built-in integer type in octal

J

Jim

I need to input a stream of data that is a string. In
that string are some octal numbers. What happen, did you
forget the ushort.Parse(string,...) that accepts octal
numbers? You have decimal and hexidecimal but no octal.

Any other votes for octal input to the .Parse() method.

Jim
 
S

Stephan Kabisius

Jim,

The utility functions in the Convert class allow you to specify any base
(i.e. uint32 myOctalAsInt = Convert.ToUInt32( octal_string, 8) ).

Regards,
Stephan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top