set int64 gives a wrong value #15
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BeRo1985/besen#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello BeRo
while i'm testing setting large values like
18374966859414961920
i test with
i try to follow the code and i think the problem is here
DoFastShortest() in BESENNumberUtils
i try to fix but i can't
can you please check it if you have time
thanks
i think there's no problem with your code
i'm sorry for judge so fast
i test on V8 Engine and give same result
but i don't know why or how to set to the value i want
(Mostly) all number values at ECMAScript/JavaScript are IEEE754 64-bit Double-Precision Floating Point values, and these can hold only up to 53-bit integer values lossless. See http://2ality.com/2012/04/number-encoding.html and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER and so on. So it's here by language-design.
@BeRo1985 do you plan to update to ES6 ? or update the current project !