sci_round
- nrv.utils.sci_round(value, digits=3)[source]
Rounds one or several values to
digits
significant digits.- Parameters:
value (int, float, list or np.ndarray) – value or values wich should be rounded.
digits (int) – number of significant digits to keep.
- Returns:
rounded value or values, with the same type and shape than
value
.- Return type:
int, float, list or np.ndarray