bitcoin-atm

bitcoin atm for pyc inc.

git clone https://9o.is/git/bitcoin-atm.git

Implicits.scala

(252B)


      1 package inc.pyc.chimera
      2 
      3 object Implicits {
      4   
      5   implicit class DoubleImplicit(double: Double) {
      6     
      7     /**
      8      * Rounds a number to 8 decimal places or one satoshi.
      9      */
     10     def roundBitcoin: Double = math.floor(double*100000000)/100000000
     11   }
     12 }