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–2019 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 email to contact at sciss.de
"de.sciss" %% "numbers" % v
The current version v
is "0.2.0"
.
The project builds with sbt against Scala 2.13, 2.12, 2.11.
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
.