pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Kinsella <simon@bluefiresystems.co.uk>
To: pgsql-sql@postgresql.org
Subject: PGSQL function for converting between arbitrary numeric bases?
Date: Mon, 15 Aug 2005 16:48:40 +0100
Message-ID: <20050815154850.11963529D9@svr1.postgresql.org> (raw)

Hello,

I'm looking - without luck so far - for a PGSQL function for converting
numbers between two arbitrary bases (typically base 10,16 and 26 in my
case).  Something similar to the C 'strtol' function or, ideally, PHP's
baseconvert(string,frombase,tobase) function.

I've search the docs, lists and various other forums but so far no luck.
Just wondered if I've missed anything - all suggestions gratefully received.

Many thank,

Simon K





view thread (2+ messages)  latest in thread

Message-ID: <20050815154850.11963529D9@svr1.postgresql.org>
Permalink:  ../20050815154850.11963529D9@svr1.postgresql.org/
Also on:    postgresql.org/message-id/20050815154850.11963529D9@svr1.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: simon@bluefiresystems.co.uk
  Subject: Re: PGSQL function for converting between arbitrary numeric bases?
  In-Reply-To: <20050815154850.11963529D9@svr1.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox