Hi there,
I love Calca but there is a quite (basic?) behavior that I find unexpected (and unfortunate to a degree). Whenever I *divide two values of the same unit* (two lengths, say, or two durations), I would expect to obtain a *unit-less* value as a result. This is not how Calca sees it, though.
Example:
---
1 m / 10 cm => 0.1 m/cm [ expected: 10 ]
2 days / 6 hours => 0.3333333333 days/hours [ expected: 8 ]
---
Note that you can work around this by converting one of the values to the exact unit scale of the other, e.g.
---
(1 m in cm) / 10 cm => 10
(2 days in hours) / 6 hours => 8
---
but I find this tedious and unnecessarily complicated.
Am I missing something here?
Thanks and best wishes,
—Torsten
onlywebmail
Fri, 30 Sep 2016 21:04:34 GMT
Yes, seems to be a bug ...
publicusernamewithpassword
Mon, 06 Feb 2017 07:45:12 GMT
you can work around it by converting them all to same units before expressing the result, as below:
x = 10 cm in m
1 m / x => 10