Re: [perl #38887] Result of INFINITY or NAN stringification is platform dependent

2007-04-15 Thread Nicholas Clark
On Sun, Jul 16, 2006 at 12:49:27PM +0100, Ron Blaschke wrote: On Win32 the implementation is simple because the IEEE recommended functions _finite and _isnan are supported. I'm thinking about adding a test for these functions and use them. But what should happen if they are not there? nan

Re: [perl #38887] Result of INFINITY or NAN stringification is platform dependent

2006-08-19 Thread Nicholas Clark
On Wed, Jul 26, 2006 at 01:21:11PM -0700, Bill Coffman wrote: That being said, you can optimize by looking at the bits. Wikipedia explains IEEE-754 http://en.wikipedia.org/wiki/IEEE_754 First, you have to be aware if the machine is big or little-endian, second, Beware. It's legal for the

Re: [perl #38887] Result of INFINITY or NAN stringification is platform dependent

2006-07-27 Thread Ron Blaschke
Bill Coffman wrote: There is no platform independent way to produce NaN or Inf, so IMHO, you did it the only way it can be done. That being said, you can optimize by looking at the bits. Wikipedia explains IEEE-754 http://en.wikipedia.org/wiki/IEEE_754 Many thanks for your thoughts, Bill.

[perl #38887] Result of INFINITY or NAN stringification is platform dependent

2006-07-26 Thread Ron Blaschke
I'm looking into this issue and would like to ask for some advice. I have added the following platform dependent functions. int Parrot_math_isnan(double) int Parrot_math_finite(double) On Win32 the implementation is simple because the IEEE recommended functions _finite and _isnan are supported.

Re: [perl #38887] Result of INFINITY or NAN stringification is platform dependent

2006-07-26 Thread Bill Coffman
On 7/26/06, Ron Blaschke [EMAIL PROTECTED] wrote: I'm looking into this issue and would like to ask for some advice. I have added the following platform dependent functions. int Parrot_math_isnan(double) int Parrot_math_finite(double) On Win32 the implementation is simple because the IEEE

[perl #38887] Result of INFINITY or NAN stringification is platform dependent

2006-07-16 Thread Ron Blaschke
I'm looking into this issue and would like to ask for some advice. I have added the following platform dependent functions. int Parrot_math_isnan(double) int Parrot_math_finite(double) On Win32 the implementation is simple because the IEEE recommended functions _finite and _isnan are supported.

[perl #38887] Result of INFINITY or NAN stringification is platform dependent

2006-04-09 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #38887] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38887 .sub main # produce INFINITY (is there a constant for that?) set N0, 0.0