Function cpc::units::multiply [−][src]
pub fn multiply(left: Number, right: Number) -> Result<Number, String>
Multiply two Number
s
- Temperatures don’t work
- If you multiply
NoType
with any other unit, the result gets that other unit - If you multiply
Length
withLength
, the result has a unit ofArea
, etc. - If you multiply
Speed
withTime
, the result has a unit ofLength
- If you multiply
Voltage
withElectricCurrent
, the result has a unit ofPower
- If you multiply
ElectricCurrent
withResistance
, the result has a unit ofVoltage
- If you multiply
Power
withTime
, the result has a unit ofEnergy