M
M
maksjuk112016-08-25 21:08:09
.NET
maksjuk11, 2016-08-25 21:08:09

How to convert to base 10 system?

How to convert a number / string from any number system (from 5 for example) to decimal?
Are these methods in the .net library?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#algooptimize #bottize, 2016-08-25
@maksjuk11

convert.toint32
// Parses value in base fromBase. fromBase can only
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
// by 0x; any other leading or trailing characters cause an error.
//
public static int ToInt32 (String value, int fromBase) {

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question