div

open operator override fun div(divisor: Double): Energy(source)

Divides this measure by a scalar and returns the result.

Return

the division result

Parameters

divisor

the value to divide by


operator fun div(time: Time): Power(source)

Divides this energy by a time to get power.

Power = Energy / Time

Return

the power in watts

Parameters

time

the time over which the energy is expended