decitectural
Version:
decimal-architectural notation converter
26 lines (15 loc) • 502 B
Markdown
decitectural
=========
A small library for converting between decimal and architectural representations of a measurement.
npm install decitectural --save
var decitectural = require('decitectural'),
toDecimal = decitectural.toDecimal,
toArchitectural = decitectural.toArchitectural;
console.log(toArchitectural(53.93, "inches", "1/16"));
console.log(toDecimal("4' 5 7/8\"", "inches", "1/10000"));
npm test
* 1.0.0 Initial Release