ChileanPeso

class ChileanPeso(var value: Double = 1.0) : Expression

Class for hold of Chilean peso

Constructors

Link copied to clipboard
constructor(value: Double = 1.0)

Creates a class for hold of Chilean peso with given value

Functions

Link copied to clipboard
infix fun Expression.^(degree: Number): Expression

Allows to power an expression to given degree

Link copied to clipboard
open override fun categorySymbols(): String

Returns representation of unit as sequence of separate category symbols and their powers according SI-Standard recommendations.

Link copied to clipboard
fun compare(other: Expression): Int

Compares expressions. Bei small relative difference of values both objects can be recognised as equal.

Link copied to clipboard
open operator override fun compareTo(other: Expression): Int

Compares expressions.Bei small relative difference of values both objects can be recognised as equal.

Link copied to clipboard

Allows to divide expressions.

fun div(other: Number): Expression

Allows to divide expression on number.

Link copied to clipboard

Allows to divide expressions.

operator fun Expression.div(x: Number): Expression

Allows to divide expression to number.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Bei small relative difference of values both objects can be recognised as equal.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Allows to subtract expressions.

Link copied to clipboard

Allows to subtract expressions.

Link copied to clipboard

Allows to divide number on expression.

Link copied to clipboard

Allows to add expressions.

Link copied to clipboard
operator fun Expression.plus(other: Expression): Expression

Allows to add expressions.

Link copied to clipboard

Allows to power an expression to given degree

Link copied to clipboard
fun pw(degree: Number): Expression

Allows to power an expression to given degree

Link copied to clipboard
operator fun Expression.rem(other: Expression): Expression

Allows to calculate the remainder of truncating division of this value by the other value.

Link copied to clipboard

Allows to multiply expressions.

fun times(other: Number): Expression

Allows to multiply expression and number.

Link copied to clipboard
operator fun Expression.times(other: Expression): Expression

Allows to multiply expressions.

operator fun Expression.times(multiplicative: Number): Expression

Allows to multiply expression and number.

Link copied to clipboard
open override fun toString(): String

Represent value as string with two digit after point as decimal separator. Please pay attention: representation of value depends on platform local settings on used computer!

Link copied to clipboard

Implementation of -=

Link copied to clipboard

Implementation of +=

Link copied to clipboard
open override fun unitSymbols(): String

Returns representation of unit as sequence of separate union symbols and their powers according SI-Standard recommendations.

Properties

Link copied to clipboard

Percentage as double

Link copied to clipboard

Percentage as double

Link copied to clipboard
Link copied to clipboard