News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Fpilib update

Started by raymond, December 16, 2006, 01:38:19 AM

Previous topic - Next topic

raymond

The latest modification is a redesign of the FpuAtoFL function after it was observed that the conversion of integer strings (no decimal digits) may have resulted in the incorporation of a minuscule decimal difference (19th significant digit) in the resulting REAL10. The modified algorithm corrects that. However, any string with decimal digits may still suffer that minuscule inaccuracy.

The modified algo is also a bit more liberal as to the content of the input string. The following has been added to the description of the function in the Help file:

QuoteExamples of acceptable input

(All the following examples must be null-terminated strings)

0
12
4.
4.0
.12345
123.45e-67
+000123.4500000000000000000000000000000000000E67
-0000004.5678000000000000000000000000000000000

+000000123456789123456789.1234567891234567890000000

Notes:

Leading integer 0's and trailing decimal 0's are simply disregarded by the conversion algorithm and would have absolutely no effect on the final result whether they are present or not. When there are less than 18 decimal digits, they are automatically assumed to have trailing 0's up to the 18th digit.

Although 18 integer digits and 18 decimal digits are allowed, only the first 20 numerical digits excluding leading integer 0's can effectively have an effect on the resulting REAL10 data.

The FPULIB2_2.ZIP can be downloaded from the following site:

http://www.ray.masmcode.com/fpu.html#fpulib

Enjoy

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

trodon

Hi Raimound, Thanks for contribution but link is invalid, probably bad renamed file,
Can you fix that?
Thanks

zooba

Thanks for the update, Raymond. These conversion algorithms are great, very professional, and don't have the 'hackiness' of anything I've written in this area.

Cheers,

Zooba :U

six_L

regards

Ehtyar

Very nice, though this topic is incorrectly named.

Ehtyar.

raymond

Quote from: trodon on December 16, 2006, 01:41:35 AM
Hi Raimound, Thanks for contribution but link is invalid, probably bad renamed file,
Can you fix that?
Thanks

Everything seems to work fine. I have not changed anything since I first posted it and had no trouble using the given link and downloading the file. Could you retry and inform me of any error reported. One of the problems in the past was that the site was blocked (for unknown reasons) to Chinese residents!!! If that is the case, send me a PM with your e-mail and I will transmit it to you via that route.

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

farrier

#6
raymond,

Thanks for the update!! :U

One of the truly useful libraries i have access to now.

Post an announcement on http://board.flatassembler.net/    I know a number of people there are using your FPULib

:clap:

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

lostcauz

Excellent. Thanks Raymond.

trodon

Quote from: raymond on December 16, 2006, 05:16:16 PM
Quote from: trodon on December 16, 2006, 01:41:35 AM
Hi Raimound, Thanks for contribution but link is invalid, probably bad renamed file,
Can you fix that?
Thanks

Everything seems to work fine. I have not changed anything since I first posted it and had no trouble using the given link and downloading the file. Could you retry and inform me of any error reported. One of the problems in the past was that the site was blocked (for unknown reasons) to Chinese residents!!! If that is the case, send me a PM with your e-mail and I will transmit it to you via that route.

Raymond


Hi, thats very strange, Now all working fine  :eek