C# Class Jurassic.NumberParser

Parses strings into numbers.
ファイルを表示 Open project: paulbartrum/jurassic Class Usage Examples

Private Methods

Method Description
AddUlps ( double value, int ulps ) : double

Adds ULPs (units in the last place) to the given double-precision number.

CoerceToNumber ( string input ) : double

Converts a string to a number (used in type coercion).

IsWhiteSpaceOrLineTerminator ( int c ) : bool

Determines if the given character is whitespace or a line terminator.

ParseBinary ( TextReader reader ) : double

Parses a binary number and returns the corresponding double-precision value.

ParseCore ( TextReader reader, char firstChar, ParseCoreStatus &status, bool decimalOnly = false, bool allowES3Octal = true ) : double

Parses a number and returns the corresponding double-precision value.

ParseFloat ( string input ) : double

Converts a string to a number (used by parseFloat).

ParseHex ( TextReader reader ) : double

Parses a hexidecimal number and returns the corresponding double-precision value.

ParseInt ( string input, int radix, bool allowOctal ) : double

Converts a string to an integer (used by parseInt).

ParseOctal ( TextReader reader ) : double

Parses a octal number and returns the corresponding double-precision value.

RefineEstimate ( double initialEstimate, int base10Exponent, BigInteger desiredValue ) : double

Modifies the initial estimate until the closest double-precision number to the desired value is found.

ScaleToInteger ( double value, BigInteger multiplier, int shift ) : BigInteger

Scales the given double-precision number by multiplying and then shifting it.