# b2f **Repository Path**: mirrors_watson/b2f ## Basic Information - **Project Name**: b2f - **Description**: Convert a series of 8-bit signed integers to 32-bit floats - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # b2f Convert a series of 8-bit signed integers to 32-bit floats. [![Build status](https://travis-ci.org/watson/b2f.svg?branch=master)](https://travis-ci.org/watson/b2f) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) ## Installation Install globally to use from the command line: ``` npm install b2f --global ``` Install as dependency to use programmatically: ``` npm install b2f --save ``` ## CLI Usage: ``` cat input.bin | b2f > output.bin ``` ## Programmatic Usage: ```js var b2f = require('b2f') var input = new Buffer('01020304', 'hex') var output = b2f(input) console.log(output.toString('hex')) // 0000003c0000803c0000c03c0000003d ``` ## API ### `var output = b2f(input)` Returns a Buffer object four times the size of `input` with each byte converted the a 32-bit float (little endian). It's expected that each byte in `input` is of type 8-bit signed integer. ## License MIT