On Sun, Jan 31, 2016 at 11:29:33AM +0800, 積丹尼 Dan Jacobson wrote: > More: > $ units m/1000 > Definition: 0.001 m > $ units '1/(1000m)' > Definition: 0.001 / m > >>>>> "AM" == Adrian Mariano <rad...@cox.net> writes: > > AM> I don't understand what the problem is here. > > OK maybe no problem. > > All I know is I see it saying > 1/1000m = 1/1000/m > But OK... due to parsing rules...
The parsing rules seem natural to me, but perhaps not to you? If numbers don't bind tightly to their units I think it is a nuisance, as you then need parentheses almost any time you use the '/' operator. In the original units, which didn't have a real parser, every unit after the first '/' was in the denominator, so this behavior was sort of inherited, but I think it is the right way to do things. The "|" operator creates a fraction, so "1|1000 m" will parse as equal to "(1/1000) meter". Or alternatively you can write "1/1000*m if you want to get standard arithmetic precedence rules. This will be equal to (1/1000)*m.