fixed

package module
v2.0.0-...-ac4190d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

README

FixedNumber

codecov Go Report Card Build Status

Documentation

Index

Constants

View Source
const DecimalBitsMask = 1<<PrecisionBitsNum - 1
View Source
const Precision = 30
View Source
const PrecisionBitsNum = Precision
View Source
const (
	SizeM = 52
)

Variables

This section is empty.

Functions

func BuildData

func BuildData(fileName, op string, num int)

func Fixed64ToFloat64

func Fixed64ToFloat64(fixed Fixed64) float64

func ReadData

func ReadData(fileName string) (op []string, v1 []float64, v2 []float64, v3 []float64, err error)

func Uint64Bits

func Uint64Bits(v uint64) (r [64]int)

Types

type Fixed64

type Fixed64 uint64

func Float64ToFixed64

func Float64ToFixed64(value float64) Fixed64

规范数处理

func (Fixed64) Add

func (fixed Fixed64) Add(oth Fixed64) Fixed64

func (Fixed64) Div

func (fixed Fixed64) Div(oth Fixed64) Fixed64

func (Fixed64) Mul

func (fixed Fixed64) Mul(oth Fixed64) Fixed64

func (Fixed64) String

func (fixed Fixed64) String() string

func (Fixed64) Sub

func (fixed Fixed64) Sub(oth Fixed64) Fixed64

Jump to

Keyboard shortcuts

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