gtbox_unit_bit

package
v0.1.76 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GTUnitBit

type GTUnitBit struct {
	BitValue *big.Float // 比特值
	Unit     UnitBits   // 单位
}

func (*GTUnitBit) Covert2Bytes

func (aBit *GTUnitBit) Covert2Bytes() *gtbox_unit_bytes.GTUnitBytes

Covert2Bytes 以2进制计算方式 将 Bit(比特) 换算成 Byte (字节)

type UnitBits

type UnitBits int

UnitBits Bit 比特 显示单位 Model

const (
	UnitBitsBit      UnitBits = iota // bit
	UnitBitsKiloBit                  // Kbit 千比特
	UnitBitsMegaBit                  // Mbit 兆比特
	UnitBitsGigaBit                  // Gbit 吉比特
	UnitBitsTeraBit                  // Tbit 太比特
	UnitBitsPetaBit                  // Pbit 拍比特
	UnitBitsExaBit                   // Ebit 艾比特
	UnitBitsZettaBit                 // Zbit 泽比特
	UnitBitsYottaBit                 // Ybit 尧比特

)

func (UnitBits) String

func (aBits UnitBits) String() string

Jump to

Keyboard shortcuts

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