Skip to main content
The tone of writing is that of technical - time is immaterial.
Source Link
user40980
user40980

3 years late, but I happened upon this question while researching a CSS/HTML problem. MyMy Haskell is very rusty, but, from what I can see, this is the usual quick-and-easy method of converting a string to a floating-point number. Quick and easy, but not a good method for production code that needs accurate numbers. Each division for each digit in the fraction causes a potential loss of, IIRC, 1/2 of the least-significant bit of the mantissa in accuracy. I'm not familiar with the internals of Unix and Windows libraries, but I remember seeing the microfiche for portions of the VAX/VMS math libraries back in the 1980s and they used, again if I remember correctly, software-implemented 128-bit arithmetic (which was not supported at that time in the hardware) to ensure the accuracy of their results as computations progressed.

3 years late, but I happened upon this question while researching a CSS/HTML problem. My Haskell is very rusty, but, from what I can see, this is the usual quick-and-easy method of converting a string to a floating-point number. Quick and easy, but not a good method for production code that needs accurate numbers. Each division for each digit in the fraction causes a potential loss of, IIRC, 1/2 of the least-significant bit of the mantissa in accuracy. I'm not familiar with the internals of Unix and Windows libraries, but I remember seeing the microfiche for portions of the VAX/VMS math libraries back in the 1980s and they used, again if I remember correctly, software-implemented 128-bit arithmetic (which was not supported at that time in the hardware) to ensure the accuracy of their results as computations progressed.

My Haskell is very rusty, but, from what I can see, this is the usual quick-and-easy method of converting a string to a floating-point number. Quick and easy, but not a good method for production code that needs accurate numbers. Each division for each digit in the fraction causes a potential loss of, IIRC, 1/2 of the least-significant bit of the mantissa in accuracy. I'm not familiar with the internals of Unix and Windows libraries, but I remember seeing the microfiche for portions of the VAX/VMS math libraries back in the 1980s and they used, again if I remember correctly, software-implemented 128-bit arithmetic (which was not supported at that time in the hardware) to ensure the accuracy of their results as computations progressed.

added 33 characters in body
Source Link

3 years late, but I happened upon this question while researching a CSS/HTML problem. My Haskell is very rusty, but, from what I can see, this is the usual quick-and-easy method of converting a string to a floating-point number. Quick and easy, but not a good method for production code that needs accurate numbers. The repeated divisions Each division for each digit in the fraction causecauses a potential loss of, IIRC, 1/2 of the least-significant bit of the mantissa in accuracy. I'm not familiar with the internals of Unix and Windows libraries, but I remember seeing the microfiche for portions of the VAX/VMS math libraries back in the 1980s and they used, again if I remember correctly, software-implemented 128-bit arithmetic (which was not supported at that time in the hardware) to ensure the accuracy of their results as computations progressed.

3 years late, but I happened upon this question while researching a CSS/HTML problem. My Haskell is very rusty, but, from what I can see, this is the usual quick-and-easy method of converting a string to a floating-point number. Quick and easy, but not a good method for production code that needs accurate numbers. The repeated divisions for each digit in the fraction cause a potential loss of, IIRC, 1/2 bit of accuracy. I'm not familiar with the internals of Unix and Windows libraries, but I remember seeing the microfiche for portions of the VAX/VMS math libraries back in the 1980s and they used, again if I remember correctly, software-implemented 128-bit arithmetic (which was not supported at that time in the hardware) to ensure the accuracy of their results as computations progressed.

3 years late, but I happened upon this question while researching a CSS/HTML problem. My Haskell is very rusty, but, from what I can see, this is the usual quick-and-easy method of converting a string to a floating-point number. Quick and easy, but not a good method for production code that needs accurate numbers. Each division for each digit in the fraction causes a potential loss of, IIRC, 1/2 of the least-significant bit of the mantissa in accuracy. I'm not familiar with the internals of Unix and Windows libraries, but I remember seeing the microfiche for portions of the VAX/VMS math libraries back in the 1980s and they used, again if I remember correctly, software-implemented 128-bit arithmetic (which was not supported at that time in the hardware) to ensure the accuracy of their results as computations progressed.

Source Link

3 years late, but I happened upon this question while researching a CSS/HTML problem. My Haskell is very rusty, but, from what I can see, this is the usual quick-and-easy method of converting a string to a floating-point number. Quick and easy, but not a good method for production code that needs accurate numbers. The repeated divisions for each digit in the fraction cause a potential loss of, IIRC, 1/2 bit of accuracy. I'm not familiar with the internals of Unix and Windows libraries, but I remember seeing the microfiche for portions of the VAX/VMS math libraries back in the 1980s and they used, again if I remember correctly, software-implemented 128-bit arithmetic (which was not supported at that time in the hardware) to ensure the accuracy of their results as computations progressed.