johnsonjh / gobcd

gobcd: Golang int to BCD conversion library (fork of https://github.com/albenik/bcd)

Home Page:https://github.com/johnsonjh/gobcd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gobcd

Maintainability

Go implementation of BCD conversion functions

Usage

package main

import (
	"fmt"
	"github.com/johnsonjh/gobcd"
)

func main() {
	fmt.Printf("Uint32: %d", bcd.ToUint32([]byte{0x11, 0x22, 0x33, 0x44}))
	fmt.Printf("BCD: %x", bcd.FromUint32(11223344))
}
ezoic increase your site revenue

About

gobcd: Golang int to BCD conversion library (fork of https://github.com/albenik/bcd)

https://github.com/johnsonjh/gobcd

License:MIT License


Languages

Language:Go 100.0%