Mole

class Mole(var value: Double) : Expression

System International Unit for amount of substance.

Constructors

Link copied to clipboard
constructor(value: Double)

Creates the unit 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

Returns numerical value of amol, (10^-18 of mole)

Link copied to clipboard

Percentage as double

Link copied to clipboard

Percentage as double

Link copied to clipboard

Returns numerical value of amol (10^-18 of mole)

Link copied to clipboard

Returns numerical value of cmol (10^-2 of mole)

Link copied to clipboard

Returns numerical value of cmol, (10^-2 of mole)

Link copied to clipboard

Returns numerical value of damol, (10^1 of mole)

Link copied to clipboard

Returns numerical value of damol (10^1 of mole)

Link copied to clipboard

Returns numerical value of dmol (10^-1 of mole)

Link copied to clipboard
Link copied to clipboard

Returns numerical value of dmol, (10^-1 of mole)

Link copied to clipboard
@get:JvmName(name = "getEmol_prop")
val Mole.Emol: Double

Returns numerical value of Emol, (10^18 of mole)

Link copied to clipboard

Returns numerical value of Emol (10^18 of mole)

Link copied to clipboard

Returns numerical value of fmol (10^-15 of mole)

Link copied to clipboard

Returns numerical value of fmol, (10^-15 of mole)

Link copied to clipboard

Returns numerical value of Gmol (10^9 of mole)

Link copied to clipboard
@get:JvmName(name = "getGmol_prop")
val Mole.Gmol: Double

Returns numerical value of Gmol, (10^9 of mole)

Link copied to clipboard

Returns numerical value of hmol (10^2 of mole)

Link copied to clipboard

Returns numerical value of hmol, (10^2 of mole)

Link copied to clipboard

Returns numerical value of kmol (10^3 of mole)

Link copied to clipboard

Returns numerical value of kmol, (10^3 of mole)

Link copied to clipboard

Returns numerical value of Mmol (10^6 of mole)

Link copied to clipboard

Returns numerical value of μmol (10^-6 of mole)

Link copied to clipboard

Returns numerical value of mmol (10^-3 of mole)

Link copied to clipboard
@get:JvmName(name = "getMmol_prop")
val Mole.Mmol: Double

Returns numerical value of Mmol, (10^6 of mole)

Link copied to clipboard

Returns numerical value of mmol, (10^-3 of mole)

Link copied to clipboard

Returns numerical value of nmol (10^-9 of mole)

Link copied to clipboard

Returns numerical value of nmol, (10^-9 of mole)

Link copied to clipboard

Returns numerical value of Pmol (10^15 of mole)

Link copied to clipboard

Returns numerical value of pmol (10^-12 of mole)

Link copied to clipboard
@get:JvmName(name = "getPmol_prop")
val Mole.Pmol: Double

Returns numerical value of Pmol, (10^15 of mole)

Link copied to clipboard

Returns numerical value of pmol, (10^-12 of mole)

Link copied to clipboard
@get:JvmName(name = "getQmol_prop")
val Mole.Qmol: Double

Returns numerical value of Qmol, (10^30 of mole)

Link copied to clipboard

Returns numerical value of qmol, (10^-30 of mole)

Link copied to clipboard

Returns numerical value of qmol (10^-30 of mole)

Link copied to clipboard

Returns numerical value of Qmol (10^30 of mole)

Link copied to clipboard
@get:JvmName(name = "getRmol_prop")
val Mole.Rmol: Double

Returns numerical value of Rmol, (10^27 of mole)

Link copied to clipboard

Returns numerical value of rmol, (10^-27 of mole)

Link copied to clipboard

Returns numerical value of Rmol (10^27 of mole)

Link copied to clipboard

Returns numerical value of rmol (10^-27 of mole)

Link copied to clipboard

Returns numerical value of Tmol (10^12 of mole)

Link copied to clipboard
@get:JvmName(name = "getTmol_prop")
val Mole.Tmol: Double

Returns numerical value of Tmol, (10^12 of mole)

Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "getYmol_prop")
val Mole.Ymol: Double

Returns numerical value of Ymol, (10^24 of mole)

Link copied to clipboard

Returns numerical value of ymol, (10^-24 of mole)

Link copied to clipboard

Returns numerical value of ymol (10^-24 of mole)

Link copied to clipboard

Returns numerical value of Ymol (10^24 of mole)

Link copied to clipboard

Returns numerical value of zmol (10^-21 of mole)

Link copied to clipboard

Returns numerical value of Zmol (10^21 of mole)

Link copied to clipboard
@get:JvmName(name = "getZmol_prop")
val Mole.Zmol: Double

Returns numerical value of Zmol, (10^21 of mole)

Link copied to clipboard

Returns numerical value of zmol, (10^-21 of mole)

Link copied to clipboard

Returns numerical value of μmol, (10^-6 of mole)