×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




I'm not sure what you mean by "how it calculates", but assuming it has
to do with how those min/max points are determined then the range covered
for normalized numbers is determined as:

4 Bytes: 2**-126  <= M <= (2-2**-23)(2**127)

8 Bytes: 2**-1022 <= M <= (2-2**-52)(2**1023)

Bruce

>
>The length of the floating point field must be specified
>as either  4 or 8 bytes. The range of values allowed for
>a positive floating-point field are:
>
>  4 bytes       1.175 494 4 E-38 (MIN)
>                      3.402 823 5 E+38 (MAX)
>
>  8 bytes       2.225 073 858 507 201 E-308 (MIN)
>                     1.797 693 134 862 315 E+308 (MAX)
>
>My question is: how it calculates?
>
>Thanks.
>

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.