// 
// Decompiled by Procyon v0.6.0
// 

package ch.randelshofer.fastdoubleparser;

final class JsonDoubleBitsFromCharSequence extends AbstractJsonFloatingPointBitsFromCharSequence
{
    public JsonDoubleBitsFromCharSequence() {
    }
    
    @Override
    long valueOfFloatLiteral(final CharSequence str, final int startIndex, final int endIndex, final boolean isNegative, final long significand, final int exponent, final boolean isSignificandTruncated, final int exponentOfTruncatedSignificand) {
        final double d = FastDoubleMath.tryDecFloatToDoubleTruncated(isNegative, significand, exponent, isSignificandTruncated, exponentOfTruncatedSignificand);
        return Double.doubleToRawLongBits(Double.isNaN(d) ? Double.parseDouble(str.subSequence(startIndex, endIndex).toString()) : d);
    }
}
