floatConv

given floatConv: NativeConverter[Float]

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

Value members

Concrete methods

def fromNative(nativeJs: Any): Float

Inherited methods

def fromJson(json: String): Float

Convert a Json String to type A <br> Any RuntimeException subclass may be thrown if conversion fails.

Convert a Json String to type A <br> Any RuntimeException subclass may be thrown if conversion fails.

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 <br> Any RuntimeException subclass may be thrown if conversion fails.

Convert type A to a JSON string <br> Any RuntimeException subclass may be thrown if conversion fails.

Inherited from
NativeConverter