/*jshint node:true */

'use strict';

var identity = require('lodash.identity');
var bigjs = require('big.js');

module.exports = {
  getInstance: bigjs,
  getPrecision: getPrecision,
  setPrecision: setPrecision,
  plus: plus,
  minus: minus,
  times: times,
  div: div,
  toString: toString,
  valueOf: toString,
  parseInput: identity
};

function getPrecision(Big) {
  return Big.DP;
}

function setPrecision(Big, n) {
  Big.DP = n;
}

function plus(big, x) {
  return big.plus(x);
}

function minus(big, x) {
  return big.minus(x);
}

function times(big, x) {
  return big.times(x);
}

function div(big, x) {
  return big.div(x);
}

function toString(big) {
  return big.toString();
}

/*jshint node:true */

'use strict';

var identity = require('lodash.identity');
var bigjs = require('big.js');

module.exports = {
  getInstance: bigjs,
  getPrecision: getPrecision,
  setPrecision: setPrecision,
  plus: plus,
  minus: minus,
  times: times,
  div: div,
  toString: toString,
  valueOf: toString,
  parseInput: identity
};

function getPrecision(Big) {
  return Big.DP;
}

function setPrecision(Big, n) {
  Big.DP = n;
}

function plus(x, y) {
  return x.plus(y);
}

function minus(x, y) {
  return x.minus(y);
}

function times(x, y) {
  return x.times(y);
}

function div(x, y) {
  return x.div(y);
}

function toString(x) {
  return x.toString();
}

modify names of vars