Struct MicroAlgos
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
[AlgoApiFormatter(typeof(WrappedValueFormatter<MicroAlgos, ulong>), "", "", 0)]
public struct MicroAlgos : IEquatable<MicroAlgos>, IEquatable<ulong>, IWrappedValue<ulong>
Constructors
MicroAlgos(UInt64)
Declaration
public MicroAlgos(ulong amount)
Parameters
Type |
Name |
Description |
UInt64 |
amount |
|
Fields
PerAlgo
Amount of micro algos per algo.
Declaration
public const ulong PerAlgo = 1000000UL
Field Value
Properties
Amount
The numeric amount of MicroAlgos.
Declaration
public ulong Amount { get; set; }
Property Value
Methods
Equals(MicroAlgos)
Declaration
public bool Equals(MicroAlgos other)
Parameters
Returns
Equals(UInt64)
Declaration
public bool Equals(ulong other)
Parameters
Type |
Name |
Description |
UInt64 |
other |
|
Returns
FromAlgos(Double)
Converts the given amount of algos into microalgos.
Declaration
public static MicroAlgos FromAlgos(double algos)
Parameters
Type |
Name |
Description |
Double |
algos |
The amount of algos
|
Returns
Type |
Description |
MicroAlgos |
MicroAlgo amount of algos
|
ToAlgos()
Converts these MicroAlgos to units of Algos.
Declaration
Returns
Operators
Implicit(MicroAlgos to UInt64)
Declaration
public static implicit operator ulong (MicroAlgos microAlgos)
Parameters
Returns
Implicit(UInt64 to MicroAlgos)
Declaration
public static implicit operator MicroAlgos(ulong amount)
Parameters
Type |
Name |
Description |
UInt64 |
amount |
|
Returns
Explicit Interface Implementations
IWrappedValue<UInt64>.WrappedValue
Declaration
ulong IWrappedValue<ulong>.WrappedValue { get; set; }
Returns
Implements