简体   繁体   中英

Large number values shows in exponential format Kendo jquery Tree List

I am using kendo JQuery Tree List. When very large number is coming from response then its displaying in Exponential format. I believe this is java script limitation for numbers having more than 15 digits.

Is there any workaround for the same. I would like to display the number as it is and should respect format

Dojo for the same: https://dojo.telerik.com/@amitdwivedi/uzecuDep

Kendo version for jquery : "@progress/kendo-ui": "^2018.2.530",

JavaScript Number supports integers till 2^53 - 1. If you want a bigger number than that please try BigInt . You can write a very big number like this.

const theBiggestInt = BigInt(9007199254740991324324324324324);

More more you can refer this. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM