FJCVTZS
RSS
Stack Exchange Inc
Javascript Convert
FJCVTZS
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/FCVTZS_float_int.htmlThanks
Stack Overflow!But
2020.10.16.37830
No matching tags
JavaScript
No matching tags
No matching tags
That's plausible but I would like a more detailed understanding.It is because JS uses double precision for the numbers, but if you want to perform operations with bits, the task is nontrivial, so a specific instruction to convert JS double into integer makes the thing easier.This ARM link explains it very well: https://community.arm.com/processors/b/blog/posts/armv8-a-architecture-2016-additionsIn order to add more information regarding fuz's comment, the differences between FCVTZS and FJCVTZS (both of them convert floating point to int) are that in case of overflow, FJCVTZS value will be 0x80000000 instead of overflowing.
As said here by