dilution
Calculate the dilution of 2 parts
Last updated 2 years ago by ntwcklng .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dilution 
SYNC missed versions from official npm registry.

dilution

Calculate the dilution of 2 parts, like 1:2 for a 500ml bottle

Install

  1. Add this module to your dependencies
yarn add dilution
# or
npm install --save dilution

Usage

const dilution = require('dilution')

console.log(dilution(1, 2, 500)) //=> { part1: '167', part2: '333' }
console.log(dilution(50, 50, 500)) //=> { part1: '250', part2: '250' }

License

MIT - Marvin Mieth

Current Tags

  • 0.0.3                                ...           latest (2 years ago)

3 Versions

  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |