0

I have a big int such as 6222600820001059483 in python int type. When I send to browser use JsonResponse I found that the value was changed to 6222600820001060000.

I think this caused by the precison lose when JsonResponse send it to browser.

I think this was caused by javascript. Like What is JavaScript's highest integer value that a number can go to without losing precision? said the javascript's highest integer is small than this value.

So how to deal this between django and js?

wsf1990
  • 195
  • 2
  • 12

0 Answers0