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