Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

M_Iota_Lib_CSharp_Api_Utils_IotaUnitConverter_ConvertUnits

saniro edited this page Feb 16, 2017 · 1 revision

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

Clone this wiki locally