dreye.round_to_significant_digits#

dreye.round_to_significant_digits(x, p=1)[source]#

Round an array to a specified number of round to significant digits.

Parameters:
xarray-like

Array to round.

pint

Number of significant digits to round to.

Returns:
array-like

Rounded array.