src/type/unit/physicalConstants.js
function numberFactory (name, value) {
  const dependencies = ['config', 'BigNumber']

  return factory(name, dependencies, ({ config, BigNumber }) => {
    return config.number === 'BigNumber'
      ? new BigNumber(value)
      : value
  })
}
function numberFactory (name, value) {
  const dependencies = ['config', 'BigNumber']

  return factory(name, dependencies, ({ config, BigNumber }) => {
    return config.number === 'BigNumber'
      ? new BigNumber(value)
      : value
  })
}
function numberFactory ( name , value ) { const dependencies = [ 'config' , 'BigNumber' ] return factory ( name , dependencies , ( { config , BigNumber } ) => { return config . number === 'BigNumber' ? new BigNumber ( value ) : value } ) }
helper function to create a factory function which creates a numeric constant, either a number or BigNumber depending on the configuration
helper function to create a factory function which creates a numeric constant either a number or BigNumber depending on the configuration