Documentation ¶
Overview ¶
This library only provide some of function that "math" library doesn't support especially in integer's operation (int data type) . Saint also provide some function to ease in some of operations.
Warning!! Used only with int data type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
Returns the absolute value of integer's value from argument.
Example: x:=Abs(-5) // x = 5 x:=Abs(5) // x = 5
func Max ¶
Return the maximun value beetwen all the integer's arguments. Return the maximun between two or more params. Return the maximun value from an array.
Example: x:=Max(5,6,3,1,2,6) // x = 6 y:=Max(5,5,32,2) // y = 32 arr:=[] int {2,1,3,5,6} x = Max(arr...) // x = 6
func Min ¶
Return the minimun value beetwen all the integer's arguments. Return the minimun between two or more params. Return the minimun value from an array.
Example: x:=Min(5,6,3,1,2,6) // x = 1 y:=Min(5,5,32,2) // y = 2 arr:=[] int {2,1,3,5,6} x = Min(arr...) // x = 1
func Multiply ¶
Returns the multiplication result from the integer's argument, between arg to arg0.
Example :
x:=Multiply(2,3) // 6 x:=Multiply(3,3) // 9
func Pow ¶
Returns the power value of integer's argument from arg to arg0.
Example :
x:=Pow(2,3) // 8 x:=Pow(3,3) // 27
Types ¶
This section is empty.