rational

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package rational defines the interface for oh's numeric types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Number

func Number(c cell.I) *big.Rat

Number returns the *big.Rat value for a cell, if possible.

Types

type I

type I interface {
	Rat() *big.Rat
}

I (rational) is anything that can be treated as a rational number in oh.

Jump to

Keyboard shortcuts

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