Re: manipulating NUMERIC values in C extension - Mailing list pgsql-general

From Geoff Winkless
Subject Re: manipulating NUMERIC values in C extension
Date
Msg-id CAEzk6fceWBJ_iPWordKGNmyyYBxzi=kAEOVi6CCZnket=ZhHig@mail.gmail.com
Whole thread Raw
In response to Re: manipulating NUMERIC values in C extension  (John McKown <john.archie.mckown@gmail.com>)
List pgsql-general
On Fri, 8 Jun 2018 at 13:44, John McKown <john.archie.mckown@gmail.com> wrote:
> Have you considered the standard C library functions: "atoi()", "atof()", "atol()", and "atoll()" ?

Hi John

My issue wasn't so much how to get a number out of the string, rather
how to get that value back into a NUMERIC object to return back to the
server.

Thanks for taking the time to reply though, it's appreciated.

Geoff


pgsql-general by date:

Previous
From: Geoff Winkless
Date:
Subject: Re: manipulating NUMERIC values in C extension
Next
From: Adrian Klaver
Date:
Subject: Re: Can you make a simple view non-updatable?