Kilogram

class Kilogram(var value: Double) : Expression

System International Unit for mass.

Constructors

Link copied to clipboard
constructor(value: Double)

Creates the unit with given value.

Properties

Link copied to clipboard

Returns the numerical value of akg, (10^-21 of kilogram)

Link copied to clipboard

Percentage as double

Link copied to clipboard

Percentage as double

Link copied to clipboard

Returns the numerical value of akg (10^-21 of kilogram)

Link copied to clipboard

Returns the numerical value of ckg (10^-5 of kilogram)

Link copied to clipboard

Returns the numerical value of ckg, (10^-5 of kilogram)

Link copied to clipboard

Returns the numerical value of dakg, (10^-2 of kilogram)

Link copied to clipboard

Returns the numerical value of dakg (10^-2 of kilogram)

Link copied to clipboard

Returns the numerical value of dkg (10^-4 of kilogram)

Link copied to clipboard
Link copied to clipboard

Returns the numerical value of dkg, (10^-4 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getEkg_prop")
val Kilogram.Ekg: Double

Returns the numerical value of Ekg, (10^15 of kilogram)

Link copied to clipboard

Returns the numerical value of Ekg (10^15 of kilogram)

Link copied to clipboard

Returns the numerical value of fkg (10^-18 of kilogram)

Link copied to clipboard

Returns the numerical value of fkg, (10^-18 of kilogram)

Link copied to clipboard

Returns the numerical value of Gkg (10^6 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getGkg_prop")
val Kilogram.Gkg: Double

Returns the numerical value of Gkg, (10^6 of kilogram)

Link copied to clipboard

Returns the numerical value of hkg (10^-1 of kilogram)

Link copied to clipboard

Returns the numerical value of hkg, (10^-1 of kilogram)

Link copied to clipboard

Returns the numerical value of Mkg (10^3 of kilogram)

Link copied to clipboard

Returns the numerical value of μkg (10^-9 of kilogram)

Link copied to clipboard

Returns the numerical value of mkg (10^-6 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getMkg_prop")
val Kilogram.Mkg: Double

Returns the numerical value of Mkg, (10^3 of kilogram)

Link copied to clipboard

Returns the numerical value of mkg, (10^-6 of kilogram)

Link copied to clipboard

Returns the numerical value of nkg (10^-12 of kilogram)

Link copied to clipboard

Returns the numerical value of nkg, (10^-12 of kilogram)

Link copied to clipboard

Returns the numerical value of Pkg (10^12 of kilogram)

Link copied to clipboard

Returns the numerical value of pkg (10^-15 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getPkg_prop")
val Kilogram.Pkg: Double

Returns the numerical value of Pkg, (10^12 of kilogram)

Link copied to clipboard

Returns the numerical value of pkg, (10^-15 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getQkg_prop")
val Kilogram.Qkg: Double

Returns the numerical value of Qkg, (10^27 of kilogram)

Link copied to clipboard

Returns the numerical value of qkg, (10^-33 of kilogram)

Link copied to clipboard

Returns the numerical value of qkg (10^-33 of kilogram)

Link copied to clipboard

Returns the numerical value of Qkg (10^27 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getRkg_prop")
val Kilogram.Rkg: Double

Returns the numerical value of Rkg, (10^24 of kilogram)

Link copied to clipboard

Returns the numerical value of rkg, (10^-30 of kilogram)

Link copied to clipboard

Returns the numerical value of Rkg (10^24 of kilogram)

Link copied to clipboard

Returns the numerical value of rkg (10^-30 of kilogram)

Link copied to clipboard

Returns the numerical value of Tkg (10^9 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getTkg_prop")
val Kilogram.Tkg: Double

Returns the numerical value of Tkg, (10^9 of kilogram)

Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "getYkg_prop")
val Kilogram.Ykg: Double

Returns the numerical value of Ykg, (10^21 of kilogram)

Link copied to clipboard

Returns the numerical value of ykg, (10^-27 of kilogram)

Link copied to clipboard

Returns the numerical value of ykg (10^-27 of kilogram)

Link copied to clipboard

Returns the numerical value of Ykg (10^21 of kilogram)

Link copied to clipboard

Returns the numerical value of zkg (10^-24 of kilogram)

Link copied to clipboard

Returns the numerical value of Zkg (10^18 of kilogram)

Link copied to clipboard
@get:JvmName(name = "getZkg_prop")
val Kilogram.Zkg: Double

Returns the numerical value of Zkg, (10^18 of kilogram)

Link copied to clipboard

Returns the numerical value of zkg, (10^-24 of kilogram)

Link copied to clipboard

Returns the numerical value of μkg, (10^-9 of kilogram)

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 to SI-Standard recommendations.

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

Compares expressions. With 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. With 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

With 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

Represents value as string with two digits 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 to SI-Standard recommendations.