Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
A physical quantity is a number with a unit, like 10 km/h. Units can be any
of the SI units, plus a bunch of non-SI, bits, dollars, and any combination
of them. They can include the standard SI prefixes. Magnitude can operate
with physical quantities, parse their units, and print them. You don't have
to worry about unit consistency or conversions; everything is handled
transparently. By default output is done in basic SI units, but you can
specify any output unit, as long as it can be reduced to the basic units of
the physical quantity.

The basic units understood by the magnitude module are:(more...)

src/b/i/bika.lims-3.01a/bika/lims/jsonapi/calculate_partitions.py   bika.lims(Download)
from zExceptions import BadRequest
from zope import interface
import magnitude
 
 

src/b/i/Bika-LIMS-HEAD/bika/lims/jsonapi/calculate_partitions.py   Bika-LIMS(Download)
from zExceptions import BadRequest
from zope import interface
import magnitude
 
 

src/q/u/quantities-comparison-HEAD/benchmarks/bench_magnitude.py   quantities-comparison(Download)
import numpy as np
import magnitude
 
import base