- qspec.round_to_n ( x , n )[source]
-
- Parameters:
-
- xarray_like
The input data.
- nint
The number of significant decimal places to round to.
- Returns:
-
- out(scalar, int)
x rounded to 'n' significant decimal places and the corresponding number of decimal places after the decimal point.