toComponents
Breaks up a ScientificValue of Quantity into its components in UnitOne, UnitTwo and executes the given action with these components. A value is broken up into its components by converting the value to to UnitOne and splitting into UnitTwo using scale.
Splitting can only be done between AbstractScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded value in UnitOne is within this threshold, it will be rounded up.
Return
Parameters
the UnitOne to use.
the UnitTwo to use.
the number of decimals to which to round the DefaultScientificValue in UnitOne
the threshold at which DefaultScientificValue will be rounded up instead of down to the nearest value at scale
the action that converts components of DefaultScientificValue in UnitOne and UnitTwo into Result
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split
the AbstractScientificUnit to use as the first (rounded) component.
the AbstractScientificUnit to use as the second component.
the type of result to be returned.
See also
Breaks up a ScientificValue of Quantity into its components in UnitOne, UnitTwo, UnitThree and executes the given action with these components. A value is broken up into its components by converting the value to to UnitOne and splitting into UnitTwo using scale, then splitting the remainder into UnitThree.
Splitting can only be done between AbstractScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded value in any unit (except for UnitThree) is within this threshold, it will be rounded up.
Return
Parameters
the UnitOne to use.
the UnitTwo to use.
the UnitThree to use.
the number of decimals to which to round all DefaultScientificValue except for the value in UnitThree
the threshold at which DefaultScientificValue will be rounded up instead of down to the nearest value at scale
the action that converts components of DefaultScientificValue in UnitOne, UnitTwo, and UnitThree into Result
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split
the AbstractScientificUnit to use as the first (rounded) component.
the AbstractScientificUnit to use as the second (rounded) component.
the AbstractScientificUnit to use as the third component.
the type of result to be returned.
See also
Breaks up a ScientificValue of Quantity into its components in UnitOne, UnitTwo, UnitThree, UnitFour and executes the given action with these components. A value is broken up into its components by converting the value to to UnitOne and splitting into UnitTwo using scale, then splitting the remainder into UnitThree and so on.
Splitting can only be done between AbstractScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded value in any unit (except for UnitFour) is within this threshold, it will be rounded up.
Return
Parameters
the UnitOne to use.
the UnitTwo to use.
the UnitThree to use.
the UnitFour to use.
the number of decimals to which to round all DefaultScientificValue except for the value in UnitFour
the threshold at which DefaultScientificValue will be rounded up instead of down to the nearest value at scale
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split
the AbstractScientificUnit to use as the first (rounded) component.
the AbstractScientificUnit to use as the second (rounded) component.
the AbstractScientificUnit to use as the third (rounded) component.
the AbstractScientificUnit to use as the fourth component.
the type of result to be returned.
See also
Breaks up a ScientificValue of Quantity into its components in UnitOne, UnitTwo, UnitThree, UnitFour, UnitFive and executes the given action with these components. A value is broken up into its components by converting the value to to UnitOne and splitting into UnitTwo using scale, then splitting the remainder into UnitThree and so on.
Splitting can only be done between AbstractScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded value in any unit (except for UnitFive) is within this threshold, it will be rounded up.
Return
Parameters
the UnitOne to use.
the UnitTwo to use.
the UnitThree to use.
the UnitFour to use.
the UnitFive to use.
the number of decimals to which to round all DefaultScientificValue except for the value in UnitFive
the threshold at which DefaultScientificValue will be rounded up instead of down to the nearest value at scale
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split
the AbstractScientificUnit to use as the first (rounded) component.
the AbstractScientificUnit to use as the second (rounded) component.
the AbstractScientificUnit to use as the third (rounded) component.
the AbstractScientificUnit to use as the fourth (rounded) component.
the AbstractScientificUnit to use as the fifth component.
the type of result to be returned.