M_Iota_Lib_CSharp_Api_Utils_IotaUnitConverter_ConvertUnits - iotaledger-archive/iota.lib.csharp GitHub Wiki

IotaUnitConverter.ConvertUnits Method

Convert the iota amount

Namespace: Iota.Lib.CSharp.Api.Utils
Assembly: IotaApi (in IotaApi.dll) Version: 0.9.0.24212 (1.0.0.0)

Syntax

C#

public static double ConvertUnits(
	long amount,
	IotaUnits fromUnit,
	IotaUnits toUnit
)

Parameters

 

amount
Type: System.Int64
amount
fromUnit
Type: Iota.Lib.CSharp.Api.Utils.IotaUnits
the source unit e.g. the unit of amount
toUnit
Type: Iota.Lib.CSharp.Api.Utils.IotaUnits
the target unit

Return Value

Type: Double
the specified amount in the target unit

See Also

Reference

IotaUnitConverter Class
Iota.Lib.CSharp.Api.Utils Namespace

⚠️ **GitHub.com Fallback** ⚠️