All Downloads are FREE. Search and download functionalities are using the official Maven repository.

quant.trader.exchange.common.scala Maven / Gradle / Ivy

package quant.trader.exchange


def withPrecision(v: Double, precision: Int): Double = {
    ((v / (Math.pow(10, precision))).toInt * (Math.pow(10, precision)))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy