Skip to main content

Engineer Number calculate

Project description

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’

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for engineer_number, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size engineer_number-1.0.4.tar.gz (21.5 kB) File type Source Python version None Upload date Hashes View
Filename, size engineer_number-1.0.4.zip (31.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page