maths

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(number1, number2 interface{}) interface{}

Adds two numbers.

Complexity: O(1)

func Ceil

func Ceil(input interface{}, precision int) interface{}

Computes number rounded up to precision.

Complexity: O(1)

func Divide

func Divide(number1 interface{}, number2 interface{}) interface{}

Divides two numbers.

Complexity: O(1)

func Floor

func Floor(input interface{}, precision int) interface{}

Computes number rounded down to precision.

Complexity: O(1)

func Multiply

func Multiply(number1, number2 interface{}) interface{}

Multiplies two numbers.

Complexity: O(1)

func Power

func Power(input interface{}, number int) interface{}

Returns input to the power of number.

Complexity: O(number)

func Round

func Round(number interface{}, precision int) interface{}

Computes number rounded to precision.

Complexity: O(1)

func Subtract

func Subtract(number1, number2 interface{}) interface{}

Subtracts two numbers.

Complexity: O(1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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