MikeMcl / decimal.js

An arbitrary-precision Decimal type for JavaScript
http://mikemcl.github.io/decimal.js
MIT License
6.45k stars 475 forks source link

Decimal.set is not a function #173

Closed jan-osch closed 3 years ago

jan-osch commented 3 years ago

Version 0.0.2 Node 14.15.5

const Decimal = require('decimal');

Decimal.set({ precision: 5, rounding: 4 }); // TypeError: Decimal.set is not a function
topealabi commented 2 years ago

Hi, why was this closed? I'm getting the same issue

MikeMcl commented 2 years ago

@topealabi

There was no Decimal.set in version 0.0.2.

I think it was introduced in version 7.0.0.