Numbers is a library for the Scala programming language which provides various useful numeric functions and type enrichment operators. Many of the unary and binary operators are adapted from the SuperCollider language, and Numbers is included in the ScalaCollider project. This library is (C)opyright 2013–2020 by Hanns Holger Rutz. All rights reserved. It is released under the GNU Lesser General Public License and comes with absolutely no warranties. To contact the author, send an e-mail to
contact at sciss.de.
"de.sciss" %% "numbers" % v
The current version
The project builds with sbt against Scala 2.13, 2.12, Dotty (JVM) and Scala 2.13 (JS). The last version to support Scala 2.11 was v0.2.0.
sbt compile. To test,
sbt test. For the API docs,
import de.sciss.numbers.Implicits._ 2.0.sqrt.ampDb // 3.01 0.1.linExp(0, 1, 100, 10000) // 158.5
As of version 0.2.0, we use more idiomatic Scala names with camel-case for composite operators, e.g.
ampDb instead of
linLin instead of
absDif instead of