engineer_number
Engineer Number calculate
 Engineer Number calculate
 

 This module can easily calculate Engineer Number.

 This version requires Python 3 or later.
 Python 2 version may be available but no support Python 2 version.

 for example.

 0.
 >>> from engineer_number import EngineerNumber

 1.
 >>> nano470 = EngineerNumber('470n')
 >>> nano470
 470.000n
 >>> nano470['u']
 '0.470u'

 2.
 >>> c104 = EngineerNumber('10p') * 10 ** 4
 >>> c104 = EngineerNumber('10p', 4) # equal to above line
 >>> c104['u']
 '0.100u'
 >>> c104['n']
 '100.000n'

 3.
 >>> G1 = EngineerNumber('1G')
 >>> M103 = EngineerNumber('103M')
 >>> G1 / M103
 9.709

 4.
 >>> Vcc = 5
 >>> k47 = EngineerNumber('47k')
 >>> Ibeo = Vcc / k47
 >>> Ibeo
 106.383u
 >>> Ibeo['m']
 '0.106m'
 >>> Iceo = Ibeo * 140
 >>> Iceo['m']
 '14.894m'
 >>> Io = Ibeo + Iceo
 >>> Io
 15.000m
 >>> Io['']
 '0.015'

 5.
 >>> kx = EngineerNumber('47', 2)
 >>> kx
 4.700k
 >>> kx['']
 '4700.000'
https://pypi.python.org/packages/source/e/engineer_number/engineer_number1.0.4.tar.gz#md5=4f5c9b1e6769d1574dced11dc6393106
梅濁酒(umedoblock)
384f7fbe66494bcdabfe2c64a571fd5aabb5f91b
1.0.4