Commit 1f44b20
authored
Fix unitless addition and subtraction (#175)
When adding or subtracting two unitless numbers, the result used to be
converted to the same units as the receiver. This didn't work if the
receiver was unitless. The fix changes the way we do the conversion in
a way that is not subject to this problem.1 parent 8c3b1fb commit 1f44b20
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
1747 | 1751 | | |
1748 | 1752 | | |
1749 | 1753 | | |
| |||
1784 | 1788 | | |
1785 | 1789 | | |
1786 | 1790 | | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
1787 | 1795 | | |
1788 | 1796 | | |
1789 | 1797 | | |
| |||
0 commit comments