arithmetic

package
v0.0.0-...-2a023ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Divide

func Divide(a, b int) (float64, error)

Divide will take two arguments and return its division as far as the second argument isn't zero that will return an error

func Multiply

func Multiply(args ...int) int

Multiply will take as many arguments as you want and will return the multiplication of them

func Subtract

func Subtract(args ...int) int

Subtract will take as many arguments as you pass to it and return the subtraction of them

func Sum

func Sum(args ...int) (res int)

Sum will take as many arguments as you pass to it and return the sum of all of them

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL