Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

bxcodec/saint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docs

License License GoDoc

Go (Golang) Math Library for Integer Operations

Any Math operations that not support integer, can used this library

Index

Support

You can also email iman.tumorang@gmail.com or file an Issue. See documentation in Godoc

Getting Started

Download

go get -u github.com/bxcodec/saint

Example

package main

import (
	"fmt"
	"github.com/bxcodec/saint"
)

func main() {
	 	
    
   arr:=[] int {2,1,3,5,6}
   var x int 

   x= saint.Max(arr...) 
   fmt.Println(x) // 6

   x= saint.Max(4,3,1,5,7) 
   fmt.Println(x) // 7

   x= saint.Min(arr...) 
   fmt.Println(x) // 1

   x= saint.Min(4,3,5,5,7) 
   fmt.Println(x) // 3

   x= saint.Sum(arr...) 
   fmt.Println(x) // 17

   x = saint.Sum(4,5)
   fmt.Println(x) // 9
}

About

Go (Golang) Math Library for Integer Operations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages