arithmetic

package
v0.0.0-...-a1c84da Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a float64, b float64) float64

Add Returns the sum of two numbers for testing tests.

func Divide

func Divide(a float64, b float64) float64

Divide Returns the quotient of two numbers.

func Multiply

func Multiply(a float64, b float64) float64

Multiply Returns the product (*) of two numbers.

func Negate

func Negate(a float64) float64

Negate Returns the expression with it's sign changed.

func Remainder

func Remainder(a int, b int) int

Remainder Returns the remainder after dividing two numbers.

func Subtract

func Subtract(a float64, b float64) float64

Subtract Returns the difference of two numbers for testing tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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