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

    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, 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. Serializable
  10. Comparator
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StrNum(ss: String)

    ss

    the underlying string

Type Members

  1. class Ops extends AnyRef
    Definition Classes
    Numeric

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  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 finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def fromDouble(d: Double): StrNum

    Create a string number from a Double.

    Create a string number from a Double.

    d

    the source double

  25. 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
  26. def getBytes(): Array[Byte]

    Get the bytes for 'this' string number.

  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def gt(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  29. def gteq(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  30. 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
  31. def in(set: Set[StrNum]): Boolean

    Determine whether 'this' is in the given set.

  32. 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

  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  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(x: StrNum, y: StrNum): StrNum
    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(x: StrNum, y: StrNum): StrNum
    Definition Classes
    Ordering
  40. def minus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  41. implicit def mkNumericOps(lhs: StrNum): Ops
    Definition Classes
    Numeric
  42. implicit def mkOrderingOps(lhs: StrNum): StrNum.Ops
    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()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. def on[U](f: (U) ⇒ StrNum): Ordering[U]
    Definition Classes
    Ordering
  50. def one: StrNum
    Definition Classes
    Numeric
  51. def plus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  52. def pow(s: StrNum, r: StrNum): StrNum
  53. def reverse: Ordering[StrNum]
    Definition Classes
    Ordering → PartialOrdering
  54. def reversed(): Comparator[StrNum]
    Definition Classes
    Comparator
  55. def signum(x: StrNum): Int
    Definition Classes
    Numeric
  56. val ss: String
  57. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  58. def thenComparing[U <: Comparable[_ >: U]](arg0: Function[_ >: StrNum, _ <: U]): Comparator[StrNum]
    Definition Classes
    Comparator
  59. def thenComparing[U](arg0: Function[_ >: StrNum, _ <: U], arg1: Comparator[_ >: U]): Comparator[StrNum]
    Definition Classes
    Comparator
  60. def thenComparing(arg0: Comparator[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  61. def thenComparingDouble(arg0: ToDoubleFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  62. def thenComparingInt(arg0: ToIntFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  63. def thenComparingLong(arg0: ToLongFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  64. def times(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  65. def toComplex: Complex
  66. 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

  67. def toDouble: Double
  68. 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
  69. def toFloat: Float
  70. 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
  71. def toInt: Int
  72. 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
  73. def toLong: Long
  74. 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
  75. def toRational: Rational
  76. 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

  77. def toReal: Real
  78. 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

  79. def toStrNum: StrNum

    Convert 'this' string number to a StrNum.

  80. def toString(): String

    Convert 'this' string number to a String.

    Convert 'this' string number to a String.

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

    Compute the unary minus (-).

  83. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  85. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  86. def zero: StrNum
    Definition Classes
    Numeric
  87. def ~^(r: StrNum): StrNum

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

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

    r

    the power/exponent

  88. def (r: StrNum): StrNum
  89. def (set: Set[StrNum]): Boolean
  90. def (lim: (StrNum, StrNum)): Boolean
  91. def (set: Set[StrNum]): Boolean
  92. def (lim: (StrNum, StrNum)): Boolean
  93. def (s: StrNum): Boolean
  94. def (s: StrNum): Boolean
  95. 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

  96. 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

  97. 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

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 Serializable

Inherited from Comparator[StrNum]

Inherited from AnyRef

Inherited from Any

Ungrouped