DefaultScientificValue

A class implementation of ScientificValue

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of AbstractScientificUnit this value represents

value

the value component

unit

the Unit component

Constructors

Link copied to clipboard
constructor(value: Decimal, unit: Unit)
constructor(value: Double, unit: Unit)

Properties

Link copied to clipboard

A Decimal representation of value

Link copied to clipboard
open override val unit: Unit
Link copied to clipboard
open override val value: Double

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun compareTo(other: ScientificValue<Quantity, *>): Int
Link copied to clipboard

Creates a DefaultScientificValue equal to the ScientificValue.value divided by value

Divides the ScientificValue.value of two ScientificValue into a DefaultScientificValue with LeftUnit as its unit

Creates a Value equal to the ScientificValue.value divided by value

Link copied to clipboard

Creates a DefaultScientificValue equal to the ScientificValue.value increased by value

Creates a DefaultScientificArray in Unit by adding a ScientificArray to this ScientificValue This will convert the values right into Unit

Creates a Value equal to the ScientificValue.value increased by value

Link copied to clipboard

Creates a DefaultScientificValue equal to the ScientificValue.value multiplied by value

Multiplies the ScientificValue.value of two ScientificValue into a DefaultScientificValue with LeftUnit as its unit

Creates a Value equal to the ScientificValue.value multiplied by value

Link copied to clipboard
fun ScientificValue<*, *>.toString(formatter: ScientificValueFormatter = CommonScientificValueFormatter): String

Gets the String representation of a ScientificValue using a ScientificValueFormatter