ScientificValue

A Value in a given ScientificUnit

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of ScientificUnit this value represents

Inheritors

Properties

Link copied to clipboard

A Decimal representation of value

Link copied to clipboard
abstract val unit: Unit

The Unit component

Link copied to clipboard
abstract val value: Number

The value component

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