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.

Source Distributions

engineer_number-1.0.1.zip (13.5 kB view hashes)

Uploaded Source

engineer_number-1.0.1.tar.gz (10.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page