简体   繁体   中英

Why doesn't the dart2js compiler convert 64-bit integers to IEEE 754 FP numbers?

I've been reading that the dart2js compiler doesn't support 64 bit integers. Is this because javascript doesn't have a representation for 64-bit integers and stores all numbers as 64-bit double precision values? If so, couldn't integer values simply be converted to the representation? If that is not the case, why doesn't the compiler support this conversion?

Yes, this is because JS doesn't have 64 int. I'm not sure what you mean by the rest of your question. If you store bigger values as double, you loose precision.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM