Closed solarshado closed 10 years ago
Trivial example in Chrome dev console:
> var one=new Qty('1'), foot=new Qty('ft') undefined > one.toString() "1" > foot.toString() "1 ft" > (one.mul(foot)).toString() "1 ft" > (foot.mul(one)).toString() "1 ft" > (foot.mul(foot)).toString() "1 ft2" > (one.mul(one)).toString() ERROR: "Unit not recognized"
The error comes from to() when other is unitless
to()
other
Fixed. Thanks for the report.
Trivial example in Chrome dev console:
The error comes from
to()
whenother
is unitless