Companion

object Companion

Properties

Link copied to clipboard

The Real -1.0.

Link copied to clipboard

The Real 1.0.

Link copied to clipboard

The Real 0.5.

Link copied to clipboard
Link copied to clipboard

The pattern recognizing the textual representation of a Real.

Link copied to clipboard

The Real 0.0.

Functions

Link copied to clipboard
fun of(real: Double): Real
fun of(real: Float): Real
fun of(real: BigDecimal): Real

Creates a Real with the given real value.

fun of(real: String): Real

Parses real into a Real.

Link copied to clipboard

Renders real ensuring the result contains a decimal point, appending .0 if real's own toString would otherwise look like an integer (e.g. 1 becomes 1.0).