Skip to content

Instantly share code, notes, and snippets.

@Gerwinnz
Gerwinnz / fractionalize_value.js
Last active Aug 18, 2016
Formats a number value into a fraction with optional accuracy
View fractionalize_value.js
/*
|
|
| Formats a number value into a fraction with optional accuracy
|
|
*/
function fractionalizeValue(value, fractions)
{