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.