Method FromBaseAsync

FromBaseAsync(IEnumerable<double>, IUnit, CancellationToken)

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

Declaration
Task<IEnumerable<double>> FromBaseAsync(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 to

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