semvec/pypi-packages huggingface dataset:
engineer_number 1.0.4
Engineer Number calculate
License: BSD License
Keywords: engineer,SI

| 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'