I have an application, and it is fed some HTML. It then needs to put that HTML into a string. This HTML contains single and double quotes. Is it possible, in javascript, to declare a string with information inside of it, that does not use single or d...
I'm revisiting a question (How to test if numeric conversion will change value?) that as far as I was concerned was fully solved. The problem was to detect when a particular numeric value would overflow JavaScript's IEEE-754 Number type. The...
I am trying to convert some Java code into JavaScript which is needed for the application I am working on. I am stuck on one class and its methods that convert a variable of type double to long, and then long to a byte array that consists of 8 bytes...
Suppose I have a hex number "4072508200000000" and I want the floating point number that it represents (293.03173828125000) in IEEE-754 double format to be put into a JavaScript variable.  I can think of a way that uses some masking and a cal...
Since integers above 2^53 can't be accurately represented in doubles, how does JS decide on their decimal representation when they are printed as strings?  For example, 2^55 is 36028797018963968, and printf("%lf",(double)(1LL<<55))...
I am wondering how I can convert 1,000,000 to 1.0E6 in JavaScript. I'd like the complete opposite of the parseInt function?  Many thanks!...
Out of interest and not real life demands: Is it somehow possible to subtract exponents of two  numbers in JavaScript? Because the result of 1e+29 * 1e-3 (or 1e+29 / 1e+3) is the unprecise number 9.999999999999999e+25 even though the correct result 1...
i have two double value..   one is 103.4738 and another is 103.4728 as they are only 0.001.  Is there a javascript function/way that i can do, to check against the value.. meaning if the value is +/- 0.0005 it would be a pass... and if not, it would...
How to convert a number with prefix into double/float e.g. STA01.02to 1.02?...
While playing arround with Mandelbrot set generation in WebGl I've inevitably stumbled on a small accuracy of OpenGl's 32bit float. Yet, new hope was born when I found this great article. Carefully, I took functions from aforementioned source...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.