package
Version:
v0.96.0
Opens a new window with list of versions in this module.
Published: Jul 21, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package math provides access to useful numeric functions available in Neo VM.
Abs returns absolute value of a.
Max returns maximum of a, b.
Min returns minimum of a, b.
Pow returns a^b using POW VM opcode.
b must be >= 0 and <= 2^31-1.
Sign returns:
-1 if x < 0
0 if x == 0
+1 if x > 0
Sqrt returns positive square root of x rounded down.
Within returns true if a <= x < b.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.