How to use 'javascript bigdecimal' in JavaScript

Every line of 'javascript bigdecimal' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
323function BigDecimal(amount, locale) {
324 if (amount === void 0) { amount = 0; }
325 if (locale === void 0) { locale = 'en_US'; }
326 this.amount = amount;
327 this.locale = locale;
328}
1040toBigDecimal(): BigDecimal {
1041 assert(this.kind == ValueKind.BIGDECIMAL, 'Value is not a BigDecimal.')
1042 return changetype(this.data as u32)
1043}

Related snippets