nextDouble

open override fun nextDouble(): Double

Returns the Token.NUMBER value of the next token, consuming it.

If the next token is a string, this method will attempt to parse it as a double.

Throws

if the next token is not a literal value, or if the next literal value cannot be parsed as a double, or is non-finite.