NosoMath class

A utility class for Noso related mathematical operations.

Constructors

NosoMath()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bigIntToDouble({int valueInt = 0, String? valueString, List<int>? fromPsk}) double
Converts a big integer to a double.
bigIntToInt({int valueInt = 0, String? valueString, List<int>? fromPsk}) int
Converts a big integer to an integer.
doubleToBigEndian(dynamic amount) int
Converts a numeric value (either integer or double) to a 64-bit big-endian integer.
doubleToByte(double value) Uint8List
Converts a double-precision floating-point number to a little-endian byte array.
getFee(int amount) int
Calculates the fee for a given amount.
intToBytes(int value) List<int>
Converts a 64-bit integer to a little-endian byte array.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited