ewoksfluo.math.rounding.round_to_significant#

ewoksfluo.math.rounding.round_to_significant(value, tolerance=0.01)[source]#

Rounds a number to the least amount of significant decimals without changing the value by more than the given tolerance (default 1%).

Parameters:
  • value (float)

  • tolerance (float)

Return type:

float