Datatables is editing my long integer

Datatables is editing my long integer

WhiskeyWhiskey Posts: 4Questions: 2Answers: 0

JS Bin: http://live.datatables.net/wexisume/7/edit
Data: https://pastebin.com/Fjc8NXqP
Code: https://pastebin.com/km0qUwpB

The long integer is being rounded at and only showing zeros at a certain point, is there anyway I can stop this?

Answers

  • WhiskeyWhiskey Posts: 4Questions: 2Answers: 0

    I just changed the data source to make it a string instead of integer but I'm still curious to know why this is happening and how I would fix it.

  • kthorngrenkthorngren Posts: 21,141Questions: 26Answers: 4,918

    This is a Javascript limitation called Number​.MAX_SAFE_INTEGER. This number is 9007199254740991. Your Stream ID's are larger so they are not being represented as you expect.

    76561197961558003
    9007199254740991

    Kevin

This discussion has been closed.