//
pkg.gl
Category
github.com/umee-network/umee/v6
util
bpmath
package
6.6.0
Repository:
https://github.com/umee-network/umee.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
3
Files
92 SLOC
#
Functions
FixedFromQuo
FixedFromQuo returns a/b in basis points.
FromQuo
FromQuo returns a/b in basis points.
Mul
Mul returns a * b_basis_points rounding towards zero.
MulDec
MulDec returns a * b_basis_points rounding towards zero.
#
Constants
DOWN
No description provided by the author
Half
No description provided by the author
One
No description provided by the author
UP
No description provided by the author
Zero
No description provided by the author
#
Type aliases
BP
BP represents values in basis points.
FixedBP
FixedBP assures that all operations are in 0-10'000 range Note: FixedBP operations should not be chained - this causes precision loses.
Rounding
No description provided by the author