Re: NAN-Values in ECPG-Code - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: NAN-Values in ECPG-Code
Date
Msg-id 20070903110956.GB28752@feivel.credativ.de
Whole thread Raw
In response to NAN-Values in ECPG-Code  (René Grün <rgr@mbs-software.de>)
List pgsql-interfaces
On Fri, Jun 15, 2007 at 03:38:03PM +0200, René Grün wrote:
> I have a Question:

Sorry for the late answer, but I still have a backlog in my emails.

> EXEC SQL BEGIN DECLARE SECTION;
> Int    paramid;
> Float fval;
> EXEC SQL END DECLARE SECTION;
> 
> paramid = 5;
> fval = 'NAN';

How about this?

fval = strtod("nan", NULL);

> Mit freundlichen Grüßen aus Krefeld,
> With best regards from Krefeld,

Being very close in Moenchengladbach I hope this helps.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: "Hilton Perantunes"
Date:
Subject: Re: Problem with character encodings.
Next
From: Robert Ayrapetyan
Date:
Subject: Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using MinGW