Packages

  • package root
    Definition Classes
    root
  • package scalation

    The scalation package specifies system-wide constants for directory paths.

    The scalation package specifies system-wide constants for directory paths. Sub-packages may wish to define 'BASE-DIR = DATA_DIR + ⁄ + <package>' in their own 'package.scala' files. For maintainability, directory paths should only be specified in 'package.scala' files.

    Definition Classes
    root
  • package math

    The math package contains classes, traits and objects for common mathematical operations.

    The math package contains classes, traits and objects for common mathematical operations. Its package object defines exponentiation, logarithmic, trigonometric, etc. operators and functions.

    Definition Classes
    scalation
  • object StrO extends Error

    The StrO object is used to represent and operate on string numbers.

    The StrO object is used to represent and operate on string numbers. It contains an implicit class definition for StrNum, which extends strings with Numeric operations, it it can be used in VectorS. The semantics of StrNum operators are similar those in Pike.

    Definition Classes
    math
    See also

    http://docs.roxen.com/pike/7.0/tutorial/strings/operators.xml

  • StrNum

implicit class StrNum extends Numeric[StrNum] with Ordered[StrNum] with Serializable

The StrNum implicit class is used to represent and operate on string numbers. Internally, a string number is represented as String. The semantics of StrNum operators are similar those in Pike.

See also

http://docs.roxen.com/pike/7.0/tutorial/strings/operators.xml ---------------------------------------------------------------------

Linear Supertypes
Ordered[StrNum], Comparable[StrNum], Numeric[StrNum], Ordering[StrNum], PartialOrdering[StrNum], Equiv[StrNum], Serializable, Comparator[StrNum], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StrNum
  2. Ordered
  3. Comparable
  4. Numeric
  5. Ordering
  6. PartialOrdering
  7. Equiv
  8. Serializable
  9. Comparator
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StrNum(ss: String)

    ss

    the underlying string

Type Members

  1. class NumericOps extends AnyRef
    Definition Classes
    Numeric
  2. class OrderingOps extends AnyRef
    Definition Classes
    Ordering

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. def !=~(s: StrNum): Boolean

    Return whether two string numbers not are nearly equal.

    Return whether two string numbers not are nearly equal.

    s

    compare this with s

  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. def *(s: StrNum): StrNum

    Multiply two string numbers, by replacing 'SP' by 's'.

    Multiply two string numbers, by replacing 'SP' by 's'.

    s

    multiply this times s

  5. def +(s: StrNum): StrNum

    Add two string numbers.

    Add two string numbers.

    s

    add string s to this

  6. def -(s: StrNum): StrNum

    Subtract two string numbers.

    Subtract two string numbers.

    s

    subtract s from this

  7. def /(s: StrNum): StrNum

    Divide two string numbers, by replacing 's' by 'SP.

    Divide two string numbers, by replacing 's' by 'SP.

    s

    divide this by s

  8. def <(that: StrNum): Boolean
    Definition Classes
    Ordered
  9. def <=(that: StrNum): Boolean
    Definition Classes
    Ordered
  10. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def =~(s: StrNum): Boolean

    Return whether two string numbers are nearly equal.

    Return whether two string numbers are nearly equal.

    s

    compare this with s

  12. def >(that: StrNum): Boolean
    Definition Classes
    Ordered
  13. def >=(that: StrNum): Boolean
    Definition Classes
    Ordered
  14. def abs(x: StrNum): StrNum
    Definition Classes
    Numeric
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  17. def compare(s: StrNum, t: StrNum): Int

    Compare 'this' string number with that string number 't'.

    Compare 'this' string number with that string number 't'.

    t

    that string number

    Definition Classes
    StrNum → Ordering → Comparator
  18. def compare(s: StrNum): Int

    Compare two string numbers (negative for <, zero for ==, positive for >).

    Compare two string numbers (negative for <, zero for ==, positive for >).

    s

    the first string number to compare

    Definition Classes
    StrNum → Ordered
  19. def compareTo(that: StrNum): Int
    Definition Classes
    Ordered → Comparable
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(s: Any): Boolean

    Override equals to determine whether 'this' string number equals string 's'.

    Override equals to determine whether 'this' string number equals string 's'.

    s

    the string number to compare with this

    Definition Classes
    StrNum → Comparator → AnyRef → Any
  22. def equiv(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering → Equiv
  23. def fromDouble(d: Double): StrNum

    Create a string number from a Double.

    Create a string number from a Double.

    d

    the source double

  24. def fromInt(n: Int): StrNum

    Create a string number from an Int.

    Create a string number from an Int.

    n

    the source integer

    Definition Classes
    StrNum → Numeric
  25. def getBytes(): Array[Byte]

    Get the bytes for 'this' string number.

  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def gt(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  28. def gteq(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  29. def hashCode(): Int

    Must also override hashCode to be be compatible with equals.

    Must also override hashCode to be be compatible with equals.

    Definition Classes
    StrNum → AnyRef → Any
  30. def in(set: Set[StrNum]): Boolean

    Determine whether 'this' is in the given set.

  31. def in(lim: (StrNum, StrNum)): Boolean

    Determine whether 'this' is within the given bounds

    Determine whether 'this' is within the given bounds

    lim

    the given (lower, upper) bounds

  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def isReverseOf(other: Ordering[_]): Boolean
    Definition Classes
    Ordering
  34. def lt(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  35. def lteq(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  36. def max(s: StrNum): StrNum

    Return the maximum of 'this' and 's' string numbers.

    Return the maximum of 'this' and 's' string numbers.

    s

    that string number to compare with this

  37. def max[U <: StrNum](x: U, y: U): U
    Definition Classes
    Ordering
  38. def min(s: StrNum): StrNum

    Return the minimum of 'this' and 's' string numbers.

    Return the minimum of 'this' and 's' string numbers.

    s

    that string number to compare with this

  39. def min[U <: StrNum](x: U, y: U): U
    Definition Classes
    Ordering
  40. def minus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  41. implicit def mkNumericOps(lhs: StrNum): NumericOps
    Definition Classes
    Numeric
  42. implicit def mkOrderingOps(lhs: StrNum): OrderingOps
    Definition Classes
    Ordering
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. def negate(s: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  45. def not_in(set: Set[StrNum]): Boolean

    Determine whether 'this' is not in the given set.

  46. def not_in(lim: (StrNum, StrNum)): Boolean

    Determine whether 'this' is not within the given bounds

    Determine whether 'this' is not within the given bounds

    lim

    the given (lower, upper) bounds

  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  49. def on[U](f: (U) => StrNum): Ordering[U]
    Definition Classes
    Ordering
  50. def one: StrNum
    Definition Classes
    Numeric
  51. def orElse(other: Ordering[StrNum]): Ordering[StrNum]
    Definition Classes
    Ordering
  52. def orElseBy[S](f: (StrNum) => S)(implicit ord: Ordering[S]): Ordering[StrNum]
    Definition Classes
    Ordering
  53. def parseString(str: String): Option[StrNum]

    Parse the string to create a string number.

    Parse the string to create a string number.

    Definition Classes
    StrNum → Numeric
  54. def plus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  55. def pow(s: StrNum, r: StrNum): StrNum
  56. def reverse: Ordering[StrNum]
    Definition Classes
    Ordering → PartialOrdering
  57. def reversed(): Comparator[StrNum]
    Definition Classes
    Comparator
  58. def sign(x: StrNum): StrNum
    Definition Classes
    Numeric
  59. val ss: String
  60. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  61. def thenComparing[U <: Comparable[_ >: U <: AnyRef]](arg0: Function[_ >: StrNum <: AnyRef, _ <: U]): Comparator[StrNum]
    Definition Classes
    Comparator
  62. def thenComparing[U <: AnyRef](arg0: Function[_ >: StrNum <: AnyRef, _ <: U], arg1: Comparator[_ >: U <: AnyRef]): Comparator[StrNum]
    Definition Classes
    Comparator
  63. def thenComparing(arg0: Comparator[_ >: StrNum <: AnyRef]): Comparator[StrNum]
    Definition Classes
    Comparator
  64. def thenComparingDouble(arg0: ToDoubleFunction[_ >: StrNum <: AnyRef]): Comparator[StrNum]
    Definition Classes
    Comparator
  65. def thenComparingInt(arg0: ToIntFunction[_ >: StrNum <: AnyRef]): Comparator[StrNum]
    Definition Classes
    Comparator
  66. def thenComparingLong(arg0: ToLongFunction[_ >: StrNum <: AnyRef]): Comparator[StrNum]
    Definition Classes
    Comparator
  67. def times(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  68. def toComplex: Complex
  69. def toComplex(s: StrNum): Complex

    Convert 'this' string number to a Complex.

    Convert 'this' string number to a Complex.

    s

    that string number to convert

  70. def toDouble: Double
  71. def toDouble(s: StrNum): Double

    Convert 'this' string number to a Double.

    Convert 'this' string number to a Double.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  72. def toFloat: Float
  73. def toFloat(s: StrNum): Float

    Convert 'this' string number to a Float.

    Convert 'this' string number to a Float.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  74. def toInt: Int
  75. def toInt(s: StrNum): Int

    Convert 'this' string number to an Int.

    Convert 'this' string number to an Int.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  76. def toLong: Long
  77. def toLong(s: StrNum): Long

    Convert 'this' string number to a Long.

    Convert 'this' string number to a Long.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  78. def toRational: Rational
  79. def toRational(s: StrNum): Rational

    Convert 'this' string number to a Rational.

    Convert 'this' string number to a Rational.

    s

    that string number to convert

  80. def toReal: Real
  81. def toReal(s: StrNum): Real

    Convert 'this' string number to a Real.

    Convert 'this' string number to a Real.

    s

    that string number to convert

  82. def toStrNum: StrNum

    Convert 'this' string number to a StrNum.

  83. def toString(): String

    Convert 'this' string number to a String.

    Convert 'this' string number to a String.

    Definition Classes
    StrNum → AnyRef → Any
  84. def tryCompare(x: StrNum, y: StrNum): Some[Int]
    Definition Classes
    Ordering → PartialOrdering
  85. def unary_-: StrNum

    Compute the unary minus (-).

  86. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  87. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  88. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  89. def zero: StrNum
    Definition Classes
    Numeric
  90. def ~^(r: StrNum): StrNum

    Raise a string to the 'r'-th power.

    Raise a string to the 'r'-th power.

    r

    the power/exponent

  91. def (r: StrNum): StrNum
  92. def (set: Set[StrNum]): Boolean
  93. def (lim: (StrNum, StrNum)): Boolean
  94. def (set: Set[StrNum]): Boolean
  95. def (lim: (StrNum, StrNum)): Boolean
  96. def (s: StrNum): Boolean
  97. def (s: StrNum): Boolean
  98. def (t: StrNum): Boolean

    Compare 'this' string number with that string number 't' for inequality.

    Compare 'this' string number with that string number 't' for inequality.

    t

    that string number

  99. def (t: StrNum): Boolean

    Compare 'this' string number with that string number 't' for less than or equal to.

    Compare 'this' string number with that string number 't' for less than or equal to.

    t

    that string number

  100. def (t: StrNum): Boolean

    Compare 'this' string number with that string number 't' for greater than or equal to.

    Compare 'this' string number with that string number 't' for greater than or equal to.

    t

    that string number

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def signum(x: StrNum): Int
    Definition Classes
    Numeric
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) use sign method instead

Inherited from Ordered[StrNum]

Inherited from Comparable[StrNum]

Inherited from Numeric[StrNum]

Inherited from Ordering[StrNum]

Inherited from PartialOrdering[StrNum]

Inherited from Equiv[StrNum]

Inherited from Serializable

Inherited from Comparator[StrNum]

Inherited from AnyRef

Inherited from Any

Ungrouped