lib/toFraction.js
function toFraction (value) {
  var integer = Math.floor(value);
  var decimal = value - integer;
  var key = n2f(decimal);
  var result = value;

  if (vulgarities.hasOwnProperty(key)) {
    result = integer + vulgarities[key];
  }

  return result;
}
function toFraction (value) {
  var integer = Math.floor(value);
  var decimal = value - integer;
  var key = n2f(decimal);
  var result = value;

  if (vulgarities.hasOwnProperty(key)) {
    result = integer + vulgarities[key];
  }

  return result;
}
function toFraction ( value ) { var integer = Math . floor ( value ) ; var decimal = value - integer ; var key = n2f ( decimal ) ; var result = value ; if ( vulgarities . hasOwnProperty ( key ) ) { result = integer + vulgarities [ key ] ; } return result ; }
Format a decimal as a fractional HTML entity if possible.

@since v0.0.1
@param {Number} value
@return {String|Number}
@example
{{toFraction 1.25}} //=> "1¼"
{{toFraction 3.1666}} //=> "3⅙"
{{toFraction 2.7}} //=> 2.7
Format a decimal as a fractional HTML entity if possible .