conforms?

:=

check if given quantities/units are compatible


Parameters

conforms? a :unit :quantity
          b :unit :quantity

Returns

  • :logical

Examples

copy
conforms? 3`m `m ; => true conforms? 4`m `cm ; => true 4`yd := 5`m ; => true 5`m := `s ; => false

copy
givenValue: 6`yd/s conforms? givenValue `m ; => false conforms? givenValue `km/h ; => true

copy
3`m := 4`m ; => true 5`W := 5`N ; => false 5`W := 3`J/s ; => true

Related