I tested it, 1801439850109336 == 1801439850109335 output is false, 18014398501093363 == 18014398501093364 is indeed true. So it should be that js can compare numbers with up to 16 digits, and any extra 16 digits will be rounded off at the end. If you must compare large numbers, you can convert the numbers into strings and determine whether the two strings are equal.
In fact, sgf has an article that explains it in detail/a/11...; I also expanded the safe calculation range by the way, get!
I tested it, 1801439850109336 == 1801439850109335 output is false, 18014398501093363 == 18014398501093364 is indeed true. So it should be that js can compare numbers with up to 16 digits, and any extra 16 digits will be rounded off at the end. If you must compare large numbers, you can convert the numbers into strings and determine whether the two strings are equal.
Just found one