3 ms·
≫ 1 mile / 2 km 1 mi / 2 km = 0.804672 Great, but it would be nice to show the result's unit. ≫ 1/2km 1 / 2 km = 0.5 km⁻¹ It's been a lon
by rikkus 9y ago
≫ 1 mile / 2 km
1 mi / 2 km
= 0.804672
Great, but it would be nice to show the result's unit.
≫ 1/2km
1 / 2 km
= 0.5 km⁻¹
It's been a long while since I did any real maths, so I'm slightly stumped as to why the -1 exponent is there.
- sharkdp 9y agoIn your first example, the result of the calculation is dimensionless (length divided by length), so it does not require any unit. It's a scalar value. In your second example, the input gets parsed as "1/(2km)" which is equal to "0.5 km⁻¹". If you wanted half a kilometer, you'd have to enter "1/2*km"
- deleted 9y ago[deleted]