Re: [Python-ideas] SI scale factors in Python

2016-08-24 Thread Ian Kelly
On Wed, Aug 24, 2016 at 10:34 PM, Random832 wrote: > On Thu, Aug 25, 2016, at 00:28, Ken Kundert wrote: >> Basically a scale factor and units may follow a number, both of which are >> optional, but if the units are given the scale factor must also be given. > > So you can have 1000mm or 0.001km bu

Re: [Python-ideas] SI scale factors in Python

2016-08-24 Thread Ian Kelly
On Wed, Aug 24, 2016 at 11:57 PM, Greg Ewing wrote: > Chris Angelico wrote: >> >> If units are retained, what you have is no longer a simple number, but >> a value with a unit, and is a quite different beast. (For instance, >> addition would have to cope with unit mismatches (probably by throwing