RAIMAD

raimad.micron2cif

def micron2cif(micron: float, multiplier: float = 100) -> int:

Convert float micron quantity to integer CIF unit quantity.
The implementation of this function is simply `rai.round_half_up(micron * multiplier)`. It is here in order for the caller to be explicit what they are converting.
Parameters
micronfloat
The measurement, as microns.
multiplierfloat
CIF units are by-definition one hundredth of a micron. So the multiplier should always be 100, which is the default value. It can be overridden for debugging purposes.
Returns
int
The measurement, as CIF units.