Skip to content

mafintosh/varint-fraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

varint-fraction

Small thing that encodes a fractional number into a two varints.

npm install varint-fraction

Usage

const varintf = require('varint-fraction')

const buf = varintf.encode(0.42)

console.log(varintf.decode(buf)) // 0.42

License

MIT

About

WIP - nothing to see here

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published