public static long parseLongIgnoreDot( byte[] digitChars, int offset, int len ) { int len1 = len - 9; long val = parseIntIgnoreDot( digitChars, offset, len1 ) * L_BILLION; return val + ( long ) parseIntIgnoreDot( digitChars, offset + len1, 9 ); }
public static long parseLongIgnoreDot( byte[] digitChars, int offset, int len ) { int len1 = len - 9; long val = parseIntIgnoreDot( digitChars, offset, len1 ) * L_BILLION; return val + ( long ) parseIntIgnoreDot( digitChars, offset + len1, 9 ); }
public static long parseLongIgnoreDot( byte[] digitChars, int offset, int len ) { int len1 = len - 9; long val = parseIntIgnoreDot( digitChars, offset, len1 ) * L_BILLION; return val + ( long ) parseIntIgnoreDot( digitChars, offset + len1, 9 ); }
public static double simpleDouble( byte[] buffer, boolean simple, int digitsPastPoint, int startIndex, int endIndex ) { double sign; if ( simple ) { long value; final int length = endIndex - startIndex; if ( isInteger( buffer, startIndex, length ) ) { value = parseIntIgnoreDot( buffer, startIndex, length ); } else { value = parseLongIgnoreDot( buffer, startIndex, length ); } if ( digitsPastPoint < powersOf10.length ) { double power = powersOf10[ digitsPastPoint ]; return value / power; } } return Double.parseDouble( new String( buffer, startIndex, ( endIndex - startIndex ) ) ); }
public static double simpleDouble( byte[] buffer, boolean simple, int digitsPastPoint, int startIndex, int endIndex ) { double sign; if ( simple ) { long value; final int length = endIndex - startIndex; if ( isInteger( buffer, startIndex, length ) ) { value = parseIntIgnoreDot( buffer, startIndex, length ); } else { value = parseLongIgnoreDot( buffer, startIndex, length ); } if ( digitsPastPoint < powersOf10.length ) { double power = powersOf10[ digitsPastPoint ]; return value / power; } } return Double.parseDouble( new String( buffer, startIndex, ( endIndex - startIndex ) ) ); }
public static double simpleDouble( byte[] buffer, boolean simple, int digitsPastPoint, int startIndex, int endIndex ) { double sign; if ( simple ) { long value; final int length = endIndex - startIndex; if ( isInteger( buffer, startIndex, length ) ) { value = parseIntIgnoreDot( buffer, startIndex, length ); } else { value = parseLongIgnoreDot( buffer, startIndex, length ); } if ( digitsPastPoint < powersOf10.length ) { double power = powersOf10[ digitsPastPoint ]; return value / power; } } return Double.parseDouble( new String( buffer, startIndex, ( endIndex - startIndex ) ) ); }