JsonNumber

trait JsonNumber extends JsonValue

Defines JSON number.

Companion
object
trait JsonValue
class Object
trait Matchable
class Any

Value members

Abstract methods

def bigDecimalValue: BigDecimal

Gets value as BigDecimal.

Gets value as BigDecimal.

def bigIntValue: BigInt

Gets value as BigInt.

Gets value as BigInt.

Throws
ArithmeticException

if value cannot be represented exactly

def byteValue: Byte

Gets value as Byte.

Gets value as Byte.

Throws
ArithmeticException

if value cannot be represented exactly

def doubleValue: Double

Gets value as Double.

Gets value as Double.

def floatValue: Float

Gets value as Float.

Gets value as Float.

def intValue: Int

Gets value as Int.

Gets value as Int.

Throws
ArithmeticException

if value cannot be represented exactly

def longValue: Long

Gets value as Long.

Gets value as Long.

Throws
ArithmeticException

if value cannot be represented exactly

def shortValue: Short

Gets value as Short.

Gets value as Short.

Throws
ArithmeticException

if value cannot be represented exactly

Inherited methods

final def as[T](using convert: JsonInput[T]): T

Converts value.

Converts value.

Inherited from
JsonValue