FloatConv

Infinity and NaN are not supported, since JSON does not support serializing those values.

Value members

Concrete methods

def fromNativeE(ps: ParseState): Either[String, Float]

Inherited methods

def fromJson(json: String): Float

Convert a Json String to type A. Returns A, or throws.

Convert a Json String to type A. Returns A, or throws.

Inherited from
NativeConverter
def fromJsonE(json: String): Either[String, Float]

Convert a Json String to type A. Returns either A, or a String error.

Convert a Json String to type A. Returns either A, or a String error.

Inherited from
NativeConverter
def fromNative(nativeJs: Any): Float

Convert a native Javascript type to Scala.js. Returns A, or throws.

Convert a native Javascript type to Scala.js. Returns A, or throws.

Inherited from
NativeConverter
def fromNativeE(nativeJs: Any): Either[String, Float]

Convert a native Javascript type to Scala.js. Returns either A, or a String error.

Convert a native Javascript type to Scala.js. Returns either A, or a String error.

Inherited from
NativeConverter

Extensions

Extensions

extension (f: Float)
def toNative: Any

Inherited extensions

extension (a: A)
def toJson: String

Convert type A to a JSON string

Convert type A to a JSON string

Inherited from
NativeConverter