/**
 * Round a floating-point number to n decimal places.
 *
 * @param number The number to round.
 * @param n The number of decimal places to round to.
 * @return The rounded number.
 */
fun roundToNDecimalPlaces(number: Double, n: Int): Double {

    return "%.${n}f".format(number).toDouble()
}
/**
 * Round a floating-point number to n decimal places.
 *
 * @param number The number to round.
 * @param n The number of decimal places to round to.
 * @return The rounded number.
 */
fun roundToNDecimalPlaces(number: Double, n: Int): Double {
/**
 * Round a floating-point number to n decimal places.
 *
 * @param number The number to round.
 * @param n The number of decimal places to round to.
 * @return The rounded number.
 */
fun roundToNDecimalPlaces(number: Double, n: Int): Double {

    return "%.${n}f".format(number).toDouble()
}