Package

spire.math

extras

Permalink

package extras

Visibility
  1. Public
  2. All

Type Members

  1. final class FixedPoint extends AnyVal

    Permalink

    FixedPoint is a value class that provides fixed point arithmetic operations (using an implicit denominator) to unboxed Long values.

    FixedPoint is a value class that provides fixed point arithmetic operations (using an implicit denominator) to unboxed Long values.

    Working with FixedPoint values is similar to other fractional types, except that most operations require an implicit FixedScale instance (which provides the denominator).

    For example:

    // interpret FixedPoint(n) as n/1000 implicit val scale = FixedScale(1000)

    // these three values are equivalent val a = FixedPoint("12.345") // decimal repr val b = FixedPoint(Rational(2469, 200)) // fraction repr val c = new FixedPoint(12345L) // "raw" repr

  2. trait FixedPointInstances extends AnyRef

    Permalink
  3. class FixedPointOverflow extends Exception

    Permalink
  4. case class FixedScale(denom: Int) extends Product with Serializable

    Permalink

Value Members

  1. object FixedPoint extends FixedPointInstances

    Permalink
  2. package interval

    Permalink

Ungrouped