datatype

package
v0.0.0-...-3241ae0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DeadbandConst = 0.000000000001

DeadbandConst 死区的最小常量

Variables

This section is empty.

Functions

func Convert3412

func Convert3412(b []byte)

Convert3412 转换ABCD 格式

func Convert3412Bytes

func Convert3412Bytes(value float64) []byte

Convert3412Bytes float 转换为字节数组

func Convert3412Float32

func Convert3412Float32(b []byte) (val float64)

Convert3412Float32 转换为3412 类型的浮点型

func ConvertBigEndianFloat32

func ConvertBigEndianFloat32(b []byte) (val float64)

ConvertBigEndianFloat32 从字节数组中转换大编码float

func ConvertLittleEndianFloat32

func ConvertLittleEndianFloat32(b []byte) (val float64)

ConvertLittleEndianFloat32 从字节数组中转换大编码float

func Deadband

func Deadband(a, b, c float64) bool

Deadband 死区判断,判断是否在死区范围内

func Float32Equal

func Float32Equal(a, b float64) bool

Float32Equal 浮点数据判断值是否相等

func FloatEqual

func FloatEqual(a, b float64) bool

FloatEqual 浮点数据判断值是否相等

func ToString

func ToString(val float64) string

ToString 浮点类型转字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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