to_char/to_number loses sign - Mailing list pgsql-hackers

From Peter Eisentraut
Subject to_char/to_number loses sign
Date
Msg-id 200410231540.35363.peter_e@gmx.net
Whole thread Raw
Responses Re: to_char/to_number loses sign
List pgsql-hackers
This is from one of the examples in the documentation:

SELECT to_char(-485, '999S');to_char
---------485-

The reverse doesn't work as well:

SEKLECT to_number('485-', '999S');to_number
-----------      485

Is this a bug or intentional?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



pgsql-hackers by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: timestamp with time zone a la sql99
Next
From: Steve Crawford
Date:
Subject: Re: Time off