Companion

object Companion

Functions

Link copied to clipboard
fun celsius(value: Double): Temperature
fun celsius(value: Int): Temperature
fun celsius(value: Long): Temperature

Creates a Temperature instance from the given value in degrees Celsius.

Link copied to clipboard
fun fahrenheit(value: Double): Temperature
fun fahrenheit(value: Int): Temperature
fun fahrenheit(value: Long): Temperature

Creates a Temperature instance from the given value in degrees Fahrenheit.