92Returns the rounded value to the specified precision (number of digits after decimal). The default is set to 0 if no argument is passed. 93```javascript 94var value = bigDecimal.round("123.678", 2); // value = "123.68" 95``` ...
decimal alias, autofill the digits when leaving the inputfield.Function arguments: event, buffer, caretPos, optsFunction return: command object (see Define custom definitions)onUnMaskExecutes after unmasking to allow post-processing of the unmaskedvalue.Function arguments: maskedValue, unmaskedValue...
Used to determine how many digits after the decimal will be allowed. For instance, if you had a decimal number of 1.23456789 and a precision of 5, the result will be 1.23457 in the final CSS.sourceCommentsType: Boolean Default: false
// Remove any digits after the required precision. xc.length = sd;// Round up? if (more) {// Rounding up may mean the previous digit has to be rounded up. for (; ++xc[--sd] > 9;) { xc[sd] = 0; if (sd === 0) { ++x.e;...
Used to determine how many digits after the decimal will be allowed. For instance, if you had a decimal number of1.23456789and a precision of5, the result will be1.23457in the final CSS. sourceComments Type:BooleanDefault:false trueEnables the line number and file where a selector is defined...
YYYY from version 2.10.5 supports 2 digit years, and converts them to a year near 2000 (same as YY). Y was added in 2.11.1. It will match any number, signed or unsigned. It is useful for years that are not 4 digits or are before the common era. It can be used for any year...
1160 when the value has less significant digits than the number of digits in 1161 the output. 1162 1163 1164 # 2019-05-08, version 5.10.0 1165 1166 - Fix `lib/header.js` not having filled in date and version. Thanks @kevjin. 1167 - Upgraded dependency `decimal.js@10.2.0...
{29this.digits =null;30}else{31this.digits = ZERO_ARRAY.slice(0);32}33this.isNeg =false;34};3536RSAUtils.setMaxDigits =function(value) {37maxDigits =value;38ZERO_ARRAY =newArray(maxDigits);39for(variza = 0; iza < ZERO_ARRAY.length; iza++)40ZERO_ARRAY[iza] = 0;41bigZero =new...
conversions on function inputs, etc. So, if you create function multiply for twonumbers, you can extend it with support for multiplying your own data type, sayMyDecimal. If you define a conversion fromMyDecimaltonumber, the typed-function will automatically allow you to multiply aMyDecimalwith...
(seeChapter 3). If it fails, the result isNaN(instead of a syntax error as withnumberliterals). One difference is that0-prefixed octal numbers are not handled as octals (just as normal base-10 decimals) in this operation, though such octals are valid asnumberliterals (seeChapter 2)....