sigFigDecimals

fun sigFigDecimals(values: DoubleArray, sf: Int): Int

contributed by Andrew Gibson calculate the number of decimal places needed to give AT LEAST sf digits to all values

Return

the number of decimal places

Parameters

values
  • double array

sf
  • number of significant figures


fun sigFigDecimals(value: Double, sf: Int): Int

contributed by Andrew Gibson calculate the number of decimal places needed to give sf digits

Return

the number of decimal places

Parameters

value
  • double value

sf