qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec. get_decimals  (  x  )[source]

The number of displayed decimals of a float.

Parameters:
xfloat

A float value.

Returns:
nint

The number of displayed decimals of str(x).