NumberParser
Number is the simplest and lightest NumberX class.
It is implicitly convertible to NumberD, NumberO, NumberP and all the numeric types.
Error.
Initialises a new Number instance.
Initialises a new Number instance.
Main value to be used.
Initialises a new Number instance.
Main value to be used.
Base-ten exponent to be used.
Initialises a new Number instance.
Number variable whose information will be used.
Initialises a new Number instance.
NumberD variable whose information will be used.
Initialises a new Number instance.
NumberO variable whose information will be used.
Initialises a new Number instance.
NumberP variable whose information will be used.
Initialises a new Number instance.
UnitParser's UnitP variable to be used.
Compares the current instance against another Number one.
The other Number instance.
Outputs an error or "Value*10^BaseTenExponent" (BaseTenExponent different than zero sample).
Outputs an error or "Value*10^BaseTenExponent" (BaseTenExponent different than zero sample).
Culture.
Creates a new Number instance by relying on the most adequate constructor.
Decimal input.
Creates a new Number instance by relying on the most adequate constructor.
Double input.
Creates a new Number instance by relying on the most adequate constructor.
Float input.
Creates a new Number instance by relying on the most adequate constructor.
Long input.
Creates a new Number instance by relying on the most adequate constructor.
Ulong input.
Creates a new Number instance by relying on the most adequate constructor.
Int input.
Creates a new Number instance by relying on the most adequate constructor.
Uint input.
Creates a new Number instance by relying on the most adequate constructor.
Short input.
Creates a new Number instance by relying on the most adequate constructor.
Ushort input.
Creates a new Number instance by relying on the most adequate constructor.
Byte input.
Creates a new Number instance by relying on the most adequate constructor.
Sbyte input.
Creates a new Number instance by relying on the most adequate constructor.
Char input.
Creates a new Number instance by relying on the most adequate constructor.
NumberD input.
Creates a new Number instance by relying on the most adequate constructor.
NumberO input.
Creates a new Number instance by relying on the most adequate constructor.
NumberP input.
Adds two Number variables.
First operand.
Second operand.
Subtracts two Number variables.
First operand.
Second operand.
Multiplies two Number variables.
First operand.
Second operand.
Divides two Number variables.
First operand.
Second operand.
Calculates the modulo of two Number variables.
First operand.
Second operand.
Determines whether a Number variable is greater than other.
First operand.
Second operand.
Determines whether a Number variable is greater or equal than other.
First operand.
Second operand.
Determines whether a Number variable is smaller than other.
First operand.
Second operand.
Determines whether a Number variable is smaller or equal than other.
First operand.
Second operand.
Determines whether two Number variables are equal.
First operand.
Second operand.
Determines whether two Number variables are different.
First operand.
Second operand.
Determines whether the current Number variable is equal to other one.
Other variable.
Determines whether the current Number variable is equal to other one.
Other variable.
Returns the hash code for this Number variable.
Decimal variable storing the primary value.
Base-ten exponent complementing the primary value.
NumberD extends the limited decimal-only range of Number by supporting all the numeric types.
It is implicitly convertible to Number, NumberO, NumberP and all the numeric types.
Readonly member of the ErrorTypesNumber enum which best suits the current conditions.
Initialises a new NumberD instance.
Type to be assigned to the dynamic Value property. Only numeric types are valid.
Initialises a new NumberD instance.
Main value to be used. Only numeric variables are valid.
Base-ten exponent to be used.
Initialises a new NumberD instance.
Main value to be used. Only numeric variables are valid.
Type to be assigned to the dynamic Value property. Only numeric types are valid.
Initialises a new NumberD instance.
Main value to be used. Only numeric variables are valid.
Base-ten exponent to be used.
Type to be assigned to the dynamic Value property. Only numeric types are valid.
Initialises a new NumberD instance.
Variable whose information will be used. Only NumberD, Number, NumberO, NumberP, numeric and UnitParser's UnitP variables are valid.
Compares the current instance against another NumberD one.
The other NumberD instance.
Outputs an error or "Value*10^BaseTenExponent (Type)" (BaseTenExponent different than zero sample).
Outputs an error or "Value*10^BaseTenExponent (Type)" (BaseTenExponent different than zero sample).
Culture.
Creates a new NumberD instance by relying on the most adequate constructor.
Decimal input.
Creates a new NumberD instance by relying on the most adequate constructor.
Double input.
Creates a new NumberD instance by relying on the most adequate constructor.
Float input.
Creates a new NumberD instance by relying on the most adequate constructor.
Long input.
Creates a new NumberD instance by relying on the most adequate constructor.
Ulong input.
Creates a new NumberD instance by relying on the most adequate constructor.
Int input.
Creates a new NumberD instance by relying on the most adequate constructor.
Uint input.
Creates a new NumberD instance by relying on the most adequate constructor.
Short input.
Creates a new NumberD instance by relying on the most adequate constructor.
Ushort input.
Creates a new NumberD instance by relying on the most adequate constructor.
Byte input.
Creates a new NumberD instance by relying on the most adequate constructor.
Sbyte input.
Creates a new NumberD instance by relying on the most adequate constructor.
Char input.
Creates a new NumberD instance by relying on the most adequate constructor.
Number input.
Creates a new NumberD instance by relying on the most adequate constructor.
NumberO input.
Creates a new NumberD instance by relying on the most adequate constructor.
NumberP input.
Adds two NumberD variables.
First operand.
Second operand.
Subtracts two NumberD variables.
First operand.
Second operand.
Multiplies two NumberD variables.
First operand.
Second operand.
Divides two NumberD variables.
First operand.
Second operand.
Calculates the modulo of two NumberD variables.
First operand.
Second operand.
Determines whether a NumberD variable is greater than other.
First operand.
Second operand.
Determines whether a NumberD variable is greater or equal than other.
First operand.
Second operand.
Determines whether a NumberD variable is smaller than other.
First operand.
Second operand.
Determines whether a NumberD variable is smaller or equal than other.
First operand.
Second operand.
Determines whether two NumberD variables are equal.
First operand.
Second operand.
Determines whether two NumberD variables are different.
First operand.
Second operand.
Determines whether the current NumberD variable is equal to other one.
Other variable.
Determines whether the current NumberD variable is equal to other one.
Other variable.
Returns the hash code for this NumberD variable.
Numeric variable storing the primary value.
Base-ten exponent complementing the primary value.
Numeric type of the Value property.
NumberO is the only NumberX class dealing with different numeric types at the same time.
It is implicitly convertible to Number, NumberD, NumberP and all the numeric types.
Readonly collection including all the other numeric types associated with the current conditions.
Readonly member of the ErrorTypesNumber enum which best suits the current conditions.
Initialises a new NumberO instance.
Initialises a new NumberO instance.
NumberO variable whose information will be used.
Initialises a new NumberO instance.
NumberO variable whose information will be used.
Member of the OtherTypes enum determining the types to be considered.
Initialises a new NumberO instance.
NumberO variable whose information will be used.
Array containing the types to be considered.
Initialises a new NumberO instance.
Number variable whose information will be used.
Initialises a new NumberO instance.
NumberD variable whose information will be used.
Initialises a new NumberO instance.
NumberP variable whose information will be used.
Initialises a new NumberO instance.
Main value to be used.
Initialises a new NumberO instance.
Main value to be used.
Member of the OtherTypes enum determining the types to be considered.
Initialises a new NumberO instance.
Main value to be used.
Array containing the types to be considered.
Initialises a new NumberO instance.
Main value to be used.
Base-ten exponent to be used.
Member of the OtherTypes enum determining the types to be considered.
Initialises a new NumberO instance.
Main value to be used.
Base-ten exponent to be used.
Array containing the types to be considered.
Initialises a new NumberO instance.
UnitParser's UnitP variable to be used.
Compares the current instance against another NumberO one.
The other NumberO instance.
Outputs an error or "Value*10^BaseTenExponent (Type)" (BaseTenExponent different than zero sample) for the main information and all the items in Others.
Outputs an error or "Value*10^BaseTenExponent (Type)" (BaseTenExponent different than zero sample) for the main information and all the items in Others.
Culture.
Creates a new NumberO instance by relying on the most adequate constructor.
Decimal input.
Creates a new NumberO instance by relying on the most adequate constructor.
Double input.
Creates a new NumberO instance by relying on the most adequate constructor.
Float input.
Creates a new NumberO instance by relying on the most adequate constructor.
Long input.
Creates a new NumberO instance by relying on the most adequate constructor.
Ulong input.
Creates a new NumberO instance by relying on the most adequate constructor.
Int input.
Creates a new NumberO instance by relying on the most adequate constructor.
Uint input.
Creates a new NumberO instance by relying on the most adequate constructor.
Short input.
Creates a new NumberO instance by relying on the most adequate constructor.
Ushort input.
Creates a new NumberO instance by relying on the most adequate constructor.
Byte input.
Creates a new NumberO instance by relying on the most adequate constructor.
Sbyte input.
Creates a new NumberO instance by relying on the most adequate constructor.
Char input.
Creates a new NumberO instance by relying on the most adequate constructor.
Number input.
Creates a new NumberO instance by relying on the most adequate constructor.
NumberD input.
Creates a new NumberO instance by relying on the most adequate constructor.
NumberP input.
Adds two NumberO variables.
First operand.
Second operand.
Subtracts two NumberO variables.
First operand.
Second operand.
Multiplies two NumberO variables.
First operand.
Second operand.
Divides two NumberO variables.
First operand.
Second operand.
Calculates the modulo of two NumberO variables.
First operand.
Second operand.
Determines whether a NumberO variable is greater than other.
First operand.
Second operand.
Determines whether a NumberO variable is greater or equal than other.
First operand.
Second operand.
Determines whether a NumberO variable is smaller than other.
First operand.
Second operand.
Determines whether a NumberO variable is smaller or equal than other.
First operand.
Second operand.
Determines whether two NumberO variables are equal.
First operand.
Second operand.
Determines whether two NumberO variables are different.
First operand.
Second operand.
Determines whether the current NumberO variable is equal to other one.
Other variable.
Determines whether the current NumberO variable is equal to other one.
Other variable.
Returns the hash code for this NumberO variable.
Decimal variable storing the primary value.
Base-ten exponent complementing the primary value.
NumberP is the only NumberX class parsing string inputs.
It is implicitly convertible to Number, NumberD, NumberO and string.
Readonly primary value under the current conditions.
Readonly Base-ten exponent under the current conditions.
Readonly string variable including the original input to be parsed.
Readonly ParseConfig variable defining the current parsing configuration.
Readonly member of the ErrorTypesNumber enum which best suits the current conditions.
Initialises a new NumberP instance.
String variable whose contents will be parsed.
Initialises a new NumberP instance.
String variable whose contents will be parsed.
ParseConfig variable whose information will be used.
Initialises a new NumberP instance.
NumberP variable whose information will be used.
Initialises a new NumberP instance.
Number variable whose information will be used.
Initialises a new NumberP instance.
NumberD variable whose information will be used.
Initialises a new NumberP instance.
NumberO variable whose information will be used.
Initialises a new NumberP instance.
UnitParser's UnitP variable to be used.
Compares the current instance against another NumberP one.
The other NumberP instance.
Outputs an error or "Value*10^BaseTenExponent (OriginalString)" together with all the Config information via invoking its ToString() method (BaseTenExponent different than zero).
Outputs an error or "Value*10^BaseTenExponent (OriginalString)" together with all the Config information via invoking its ToString() method (BaseTenExponent different than zero).
Culture.
Creates a new NumberP instance by relying on the most adequate constructor.
String input.
Creates a new NumberP instance by relying on the most adequate constructor.
Number input.
Creates a new NumberP instance by relying on the most adequate constructor.
NumberD input.
Creates a new NumberP instance by relying on the most adequate constructor.
NumberO input.
Adds two NumberP variables.
First operand.
Second operand.
Subtracts two NumberP variables.
First operand.
Second operand.
Multiplies two NumberP variables.
First operand.
Second operand.
Divides two NumberP variables.
First operand.
Second operand.
Calculates the modulo of two NumberP variables.
First operand.
Second operand.
Determines whether a NumberP variable is greater than other.
First operand.
Second operand.
Determines whether a NumberP variable is greater or equal than other.
First operand.
Second operand.
Determines whether a NumberP variable is smaller than other.
First operand.
Second operand.
Determines whether a NumberP variable is smaller or equal than other.
First operand.
Second operand.
Determines whether two NumberP variables are equal.
First operand.
Second operand.
Determines whether two NumberP variables are different.
First operand.
Second operand.
Determines whether the current NumberP variable is equal to other one.
Other variable.
Determines whether the current NumberP variable is equal to other one.
Other variable.
Returns the hash code for this NumberP variable.
ParseConfig defines the way in which the ParseConfig parsing actions are being performed.
Numeric type targeted by the parsing actions. Its default value is decimal.
Outputs the information in all the public fields (one per line).
Initialises a new ParseConfig instance.
Initialises a new ParseConfig instance.
Type variable defining the numeric type targeted by the parsing actions.
Initialises a new ParseConfig instance.
ParseConfig variable whose information will be used.
Determines whether two ParseConfig variables are equal.
First operand.
Second operand.
Determines whether two ParseConfig variables are different.
First operand.
Second operand.
Determines whether the current ParseConfig variable is equal to other one.
Other variable.
Determines whether the current ParseConfig variable is equal to other one.
Other variable.
Returns the hash code for this ParseConfig variable.
CultureInfo variable to be used while parsing. Its default value is CultureInfo.InvariantCulture.
Member of the NumberStyles enum to be used while parsing. Its default value is NumberStyles.Any.
Member of the ParseTypes enum defining the parsing type. Its default value is ParseTypes.ParseAll.
Contains all the supported error types.
No error.
Error provoked by not matching the expected input format (e.g., null string).
Error provoked by not matching the expected conditions of certain mathematical operation (e.g., division by zero).
Error provoked by not matching the expected conditions of the corresponding native System.Math method.
Error provoked by a calculation outputting a value outside the supported range (i.e., BaseTenExponent outside the int range).
Error provoked by a string not containing valid numeric information under the given conditions.
Math2 contains all the mathematical resources of NumberParser.
Decimal version of Math.PI. First 28 decimal digits with no rounding.
Decimal version of Math.E. First 28 decimal digits with no rounding.
NumberD-adapted version of System.Math.Abs.
Input value.
NumberD-adapted version of System.Math.Acos.
Input values.
NumberD-adapted version of System.Math.Asin.
Input value.
NumberD-adapted version of System.Math.Atan.
Input value.
NumberD-adapted version of System.Math.Atan2.
First value.
Second value.
NumberD-adapted version of System.Math.BigMul.
First value to multiply.
Second value to multiply.
NumberD-adapted version of System.Math.Ceiling.
Input value.
NumberD-adapted version of System.Math.Cos.
Input value.
NumberD-adapted version of System.Math.Cosh.
Input value.
NumberD-adapted version of System.Math.DivRem.
Dividend.
Divisor.
Remainder.
NumberD-adapted version of System.Math.Exp.
Value to which e will be raised.
NumberD-adapted version of System.Math.Floor.
Input value.
NumberD-adapted version of System.Math.IEEERemainder.
Dividend.
Divisor.
NumberD-adapted version of System.Math.Log.
Value whose base-n logarithm will be calculated.
NumberD-adapted version of System.Math.Log.
Value whose logarithm will be calculated.
Base of the logarithm.
NumberD-adapted version of System.Math.Log10.
Value whose base-10 logarithm will be calculated.
NumberD-adapted version of System.Math.Max.
First value.
Second value.
NumberD-adapted version of System.Math.Min.
First value.
Second value.
NumberD-adapted version of System.Math.Pow.
Base.
Exponent.
NumberD-adapted version of System.Math.Round.
Input value.
NumberD-adapted version of System.Math.Round.
Input value.
Number of decimal places.
NumberD-adapted version of System.Math.Round.
Input value.
Midpoint rounding mode.
NumberD-adapted version of System.Math.Round.
Input value.
Number of decimal places.
Midpoint rounding mode.
NumberD-adapted version of System.Math.Sign.
Input value.
NumberD-adapted version of System.Math.Sin.
Input value.
NumberD-adapted version of System.Math.Sinh.
Input value.
NumberD-adapted version of System.Math.Sqrt.
Input value.
NumberD-adapted version of System.Math.Tan.
Input value.
NumberD-adapted version of System.Math.Tanh.
Input value.
NumberD-adapted version of System.Math.Truncate.
Input value.
Returns the dependent variable (y), as defined by y = A + B*x + C*x^2.
Coefficients (A, B, C) defining the given polynomial fit.
Independent variable (x).
Determines (least squares) the best polynomial fit for the input x/y sets.
Array containing all the independent variable (x) values. It has to contain the same number of elements than y.
Array containing all the dependent variable (y) values. It has to contain the same number of elements than x.
Calculates the factorial of input value.
Input value. It has to be smaller than 100000.
Calculates the square root of the input value.
To know more about the underlying approach, visit http://varocarbas.com/fractional_exponentiation/.
Input value.
Raises the input value to the exponent.
To know more about the underlying approach, visit http://varocarbas.com/fractional_exponentiation/.
Input value.
Exponent.
Truncates the input value as instructed.
Input value.
Truncates the input value as instructed.
Input value.
Number of decimal positions in the result.
Rounds the input value as instructed.
Input value.
Rounds the input value as instructed.
Input value.
Number of digits to be considered when rounding.
Rounds the input value as instructed.
Input value.
Type of rounding.
Rounds the input value as instructed.
Input value.
Number of digits to be considered.
Type of rounding.
Rounds the input value as instructed.
Input value.
Number of digits to be considered.
Location of the digits to be rounded (before or after the decimal separator).
Rounds the input value as instructed.
Input value.
Number of digits to be considered.
Type of rounding.
Location of the digits to be rounded (before or after the decimal separator).
Indicates the type of rounding, as defined by the way in which the last digit is being rounded.
When a number is halfway between two others, it is rounded to the number which is further from zero.
When a number is halfway between two others, it is rounded to the number which is even.
When a number is halfway between two others, it is rounded to the number which is closer to zero.
A number is always rounded to the number which is further from zero.
A number is always rounded to the number which is closer to zero.
A number is always rounded to the even number.
Indicates the location of the digits being rounded (i.e., before or after the decimal separator).
Only the digits after the decimal separator are rounded.
Only the digits before the decimal separator are rounded. The digits after the decimal separator might also be analysed (e.g., midpoint determination).
Stores the coefficients defining a second degree polynomial fit via y = A + B*x + C*x^2.
Compares the current instance against another Polynomial one.
The other Polynomial instance.
Outputs the values of all the polynomial coefficients by invoking the NumberD ToString() method.
Outputs the values of all the polynomial coefficients by invoking the NumberD ToString() method.
Culture.
Error.
Initialises a new Polynomial instance.
Coefficient A in y = A + B*x + C*x^2.
Coefficient B in y = A + B*x + C*x^2.
Coefficient C in y = A + B*x + C*x^2.
Determines whether two Polynomial variables are equal.
First operand.
Second operand.
Determines whether two Polynomial variables are different.
First operand.
Second operand.
Determines whether the current Polynomial variable is equal to other one.
Other variable.
Determines whether the current Polynomial variable is equal to other one.
Other variable.
Returns the hash code for this Polynomial variable.
Polynomial coefficient A, as defined by y = A + B*x + C*x^2.
Polynomial coefficient B, as defined by y = A + B*x + C*x^2.
Polynomial coefficient C, as defined by y = A + B*x + C*x^2.
Determines the group of numeric types to be considered at NumberO instantiation.
No types.
All the numeric types.
Only the following types: decimal, double, long and int.
Only the following types: long, ulong, int, uint, short, ushort, char, sbyte and byte.
Only the following types: decimal, double and float.
Only the following types: decimal, double, float, long, int, short and sbyte.
Only the following types: ulong, uint, ushort, byte and char.
Only the following types: decimal, double, float, long, ulong, int and uint.
Only the following types: short, ushort, sbyte, byte and char.
Determines the main rules to be applied when parsing the string input at NumberP instantiation.
All the strings are parsed without any restriction.
Only strings which fit within the range of the target type are acceptable.
Invalid thousands separators trigger an error. Any valid configuration, supported by the given culture or not, is acceptable.
Supported configurations for thousands separators: standard (groups of 3), Indian (first group of 3 and then groups of 2) and Chinese (groups of 4). Additionally to the group separators for the given culture, blank spaces are also supported.
Only strings which fit within the range of the target type and include valid thousands separators (any configuration) are acceptable.
Supported configurations for thousands separators: standard (groups of 3), Indian (first group of 3 and then groups of 2) and Chinese (groups of 4). Additionally to the group separators for the given culture, blank spaces are also supported.