Hello,I'm new to v8-dev, sorry if this was already asked before.my problem is, i re-implemented a c++ numerical lib using typescript, and some test cases failed due to float number not having enough accuracy(i debugged js/c++ code side by side with chrome devtool&msvc)right now, my only option is to user third party lib like `decimal.js`i wonder is there any way to increase float number accuracy like c++ double type?
example, is there anyway to store more than 15 decimal places in number
--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/cfed0633-c6e7-45c4-a5c0-ca9f6cfaec9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/bc1e8872-a93a-405b-94b7-0a8ad01e24f2%40googlegroups.com.
To be clear: both C++ and JS use the exact same "double" representation, neither is more precise than the other. In fact we use the exact same machine instructions to feel with them. The significant digits/decimal digits mentioned are when printing, not when calculating.So, if it's not x87 extra precision, then it must either be a non exact translation from C++ to JavaScript, or a bug. If you have a small repro that demonstrates the difference, then please file a bug and we'll take a look.- Leszek
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/79e10225-6522-4524-810b-fa2db0f2e0e3%40googlegroups.com.