div

operator fun div(divisor: Long): Kapacity
operator fun div(divisor: Int): Kapacity
operator fun div(divisor: Double): Kapacity
operator fun div(divisor: Float): Kapacity

Divides this capacity by a given scalar divisor. Ensures the resulting capacity is never negative.


operator fun div(other: Kapacity): Long

Divides this Kapacity by another Kapacity.

  • Since dividing a unit by the same unit cancels it out, this returns a scalar Long ratio representing how many times the other capacity fits into this one.