Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

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.

API navigation