Method ToBaseAsync

ToBaseAsync(IEnumerable<double>, IUnit, CancellationToken)

Converts a collection of values in given unit (= factored and shifted) to values in the base unit

Declaration
Task<IEnumerable<double>> ToBaseAsync(IEnumerable<double> values, IUnit unit, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<double> values

The values to convert

IUnit unit

The unit to convert the value from

CancellationToken cancellationToken

The optional cancellation token

Returns
Type Description
Task<IEnumerable<double>>

A collection of double value in requested unit

Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next