number

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: EUPL-1.2 Imports: 2 Imported by: 0

Documentation

Overview

Package number contains builtins to work with numbers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(args []sxpf.Object) (sxpf.Object, error)

Add is the builtin that implements (+ n...)

func Div

func Div(args []sxpf.Object) (sxpf.Object, error)

Div is the builtin that implements (div n m)

func Equal

func Equal(args []sxpf.Object) (sxpf.Object, error)

Equal implements a numeric comparision w.r.t to the equal operation.

func Greater

func Greater(args []sxpf.Object) (sxpf.Object, error)

Greater implements a numeric comparision w.r.t to the greater operation.

func GreaterEqual

func GreaterEqual(args []sxpf.Object) (sxpf.Object, error)

GreaterEqual implements a numeric comparision w.r.t to the greater-equal operation.

func Less

func Less(args []sxpf.Object) (sxpf.Object, error)

Less implements a numeric comparision w.r.t to the less operation.

func LessEqual

func LessEqual(args []sxpf.Object) (sxpf.Object, error)

LessEqual implements a numeric comparision w.r.t to the less-equal operation.

func Max

func Max(args []sxpf.Object) (sxpf.Object, error)

Max implements the maximum finding operation on numbers.

func Min

func Min(args []sxpf.Object) (sxpf.Object, error)

Min implements the minimum finding operation on numbers.

func Mod

func Mod(args []sxpf.Object) (sxpf.Object, error)

Mod is the builtin that implements (mod n m)

func Mul

func Mul(args []sxpf.Object) (sxpf.Object, error)

Mul is the builtin that implements (* n...)

func NumberP

func NumberP(args []sxpf.Object) (sxpf.Object, error)

NumberP is the boolean that returns true if the argument is a number.

func Sub

func Sub(args []sxpf.Object) (sxpf.Object, error)

Sub is the builtin that implements (- n n...)

Types

This section is empty.

Jump to

Keyboard shortcuts

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