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

skinny.micro.implicits.BigDecimalImplicits.scala Maven / Gradle / Ivy

package skinny.micro.implicits

import scala.language.implicitConversions

/**
 * Implicit conversion for BigDecimal values.
 */
trait BigDecimalImplicits { self: DefaultImplicits =>

  implicit val stringToBigDecimal: TypeConverter[String, BigDecimal] = safe(BigDecimal(_))

  implicit val stringToSeqBigDecimal: TypeConverter[String, Seq[BigDecimal]] = stringToSeq(stringToBigDecimal)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy