NumberParser code (.NET/C#)

Open source code of NumberParser
Similarly to what happens with all the other FlexibleParser parts, I wrote the whole C# (.NET 4.0) code of NumberParser completely from scratch. Its most recent version can be found in various places:The NumberParser code can be divided into the following main parts:
  • NumberX
    . This is the generic name referring to the 4 main types of NumberParser, namely: Number, NumberD, NumberO and NumberP.
    The constructors of these classes are stored in the files in the Contructors folder.
    To know more about this part of the code, take a look at the corresponding varocarbas.com section.
  • NumberO
    . It is the only NumberX which can deal with different numeric types at the same time.
    The specific implementations of NumberO are stored in the file of its constructor and in NumberO.cs.
    To know more about this part of the code, take a look at the corresponding varocarbas.com section.
  • NumberP
    . It is the only NumberX which can parse strings into numeric types. This class can deal with more situations than the parsing methods of the native .NET numeric types.
    Most of the NumberP functionalities are stored in the files inside the NumberP folder.
    To know more about this part of the code, take a look at the corresponding varocarbas.com section.
  • Custom mathematical functionalities
    . NumberParser's Math2 includes the following custom-made mathematical methods: PowDecimal/SqrtDecimal, RoundExact/TruncateExact, GetPolynomialFit/ApplyPolynomialFit and Factorial.
    All the custom mathematical methods are stored in the corresponding files and subfolders (i.e., in those whose names include "New") of the Math2 folder.
    To know more about this part of the code, take a look at the corresponding varocarbas.com section.
  • Adapted native mathematical functionalities
    . Additionally to the aforementioned custom functionalities, Math2 includes NumberD-adapted versions of all the native System.Math methods.
    The adapted-native versions can be found in the corresponding files and subfolders (i.e., in those whose names include "Existing") of the Math2 folder.
    To know more about this part of the code, take a look at the corresponding varocarbas.com section.