round

nbi_stat.round(v, n=0)[source]

Round value(s) to the precision given by nbi_stat.py

This function round the value(s) in v to the %precision 10^(-n) by rounding to nearest even number, while only considering the most adjecent digits.

Parameters:
  • v – float, scalar or array like Values to round

  • n – int, scalar or array like Precision to round to i.e., number of digts, possibly negative. Note, this can be an array of the same size as v

Returns:

float, scalar or array-like

Rounded values

Return type:

u

See also

round_round, format_result, print_result, n_significant