Skip to content
forked from albenik/bcd

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

License

Notifications You must be signed in to change notification settings

johnsonjh/gobcd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))
}

Languages

  • Go 100.0%