You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when I packaged "number", I could not package "int64". After I checked the source code, I changed "Number.isSafeInteger(object)" to "object.toString().indexOf('.') <0" It is temporarily solved. Obviously this is not the best method, but it can temporarily solve my problem. If there is a better solution to identify ”int64“, I hope to inform, thanks
The text was updated successfully, but these errors were encountered:
This is because there's no int64 in JavaScript. A number that Number.isSafeInteger() returns false is NOT a precise integer (or not a "safe" integer) so that you should not deal it as integers but instead it is a floating point number.
Hello, when I packaged "number", I could not package "int64". After I checked the source code, I changed "
Number.isSafeInteger(object)
" to "object.toString().indexOf('.') <0
" It is temporarily solved. Obviously this is not the best method, but it can temporarily solve my problem. If there is a better solution to identify ”int64“, I hope to inform, thanksThe text was updated successfully, but these errors were encountered: