Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以给Local<Number>加上区分整数 / 浮点数的能力 #27

Closed
yqs112358 opened this issue May 25, 2021 · 1 comment
Closed

Comments

@yqs112358
Copy link

尽管说Js引擎内部统一使用64位浮点数来表示数字,但是Local无法区分类型这个情况还是经常导致ScriptX数据类型在转换到C++类型时出现一定的问题,特别是做ScriptX和Json类型互转的过程当中不知该如何处理整数 / 浮点数相关的东西

@LanderlYoung
Copy link
Collaborator

The js language doesn't differ float/integer, so does ScriptX.

If you do need to do so, use v8_interop, js_interop, etc to use certain engine APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants