unitRange

fun unitRange(value: Int): Ratio
fun unitRange(value: Long): Ratio
fun unitRange(value: Double): Ratio

Creates a Ratio instance from the given value in the unit range.


A Ratio equal to this Int number in the unit range.


A Ratio equal to this Long number in the unit range.


A Ratio equal to this Double number in the unit range.