Documentation ¶
Overview ¶
Package mathext contains extensions to the base Go math package.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxBigInt ¶
Returns the larger of x or y.
Example ¶
package main import ( "fmt" "math/big" "github.com/project-iris/iris/ext/mathext" ) func main() { // Define some sample big ints four := big.NewInt(4) five := big.NewInt(5) // Print the minimum and maximum of the two fmt.Println("Min:", mathext.MinBigInt(four, five)) fmt.Println("Max:", mathext.MaxBigInt(four, five)) }
Output: Min: 4 Max: 5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.