sciss / numbers Contributors Wanted

A collection of numeric functions and type enrichments. Mirror of

Version Matrix


Build Status Maven Central


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


"de.sciss" %% "numbers"  % v

The current version v is "0.2.1".


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.

To compile sbt compile. To test, sbt test. For the API docs, sbt doc.


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 ampdb, linLin instead of linlin, absDif instead of absdif.