number

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

数字的泛型定义 每种泛型定义都包括了符合其类型特征的子类

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C interface {
	R | Complex
}

type Complex

type Complex interface {
	~complex64 | ~complex128
}

机器复数类型 go define of complex

type ComplexNumber

type ComplexNumber interface {
	RealNumber | Complex
}

复数泛型 C complex number

type Float

type Float interface {
	~float32 | ~float64
}

go 浮点数泛型定义 go define of floating-point number

type Int

type Int interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

go 有符号数泛型定义 go define of integer

type Integer

type Integer interface {
	Uint | Int
}

整数泛型 Z Integer

type N

type N interface {
	Uint
}

type NaturalNumber

type NaturalNumber interface {
	Uint
}

自然数泛型 N natural number

type Q

type Q interface {
	Z | Float
}

type R

type R interface {
	Q
}

type RationalNumber

type RationalNumber interface {
	Integer | Float
}

有理数泛型/可商数泛型 Q Rational Number

type RealNumber

type RealNumber interface {
	RationalNumber
}

实数泛型 R real number

type Uint

type Uint interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

go 无符号数泛型定义 go define of unsigned integer

type Z

type Z interface {
	Uint | Int
}

Jump to

Keyboard shortcuts

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