Documentation ¶
Overview ¶
Package units provides functions for converting different units of IOTAs.
Index ¶
Constants ¶
View Source
const ( // I is the smallest Unit. I = Unit(1) // Ki = Kiloiota. 1000 iotas. Ki = Unit(1000) // Mi = Megaiota. 1 million iotas. Mi = Unit(1000000) // Gi = Gigaiota. 1 billion iotas. Gi = Unit(1000000000) // Ti = Teraiota. 1 trillion iotas. Ti = Unit(1000000000000) // Pi = Petaiota. 1 quadrillion iotas. Pi = Unit(1000000000000000) )
Variables ¶
This section is empty.
Functions ¶
func ConvertUnits ¶
ConvertUnits converts the given value in the base Unit to the given new Unit.
Types ¶
Click to show internal directories.
Click to hide internal directories.