grams

fun grams(value: Int): Weight
fun grams(value: Long): Weight
fun grams(value: Double): Weight

Creates a Weight instance from the given value in grams.


A Weight equal to this Int number of grams.


A Weight equal to this Long number of grams.


A Weight equal to this Double number of grams.