RE: [HACKERS] ordinal decimal number

From: Karel Zak - Zakkr <zakkr(at)zf(dot)jcu(dot)cz>
To: "Ansley, Michael" <Michael(dot)Ansley(at)intec(dot)co(dot)za>
Cc: "'pgsql-hackers '" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: RE: [HACKERS] ordinal decimal number
Date: 2000-01-06 10:52:55
Message-ID: Pine.LNX.3.96.1000106114524.3280A-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 5 Jan 2000, Ansley, Michael wrote:

> My personal opinion: ordinal numbers can get a th, rd, nd, or st. That
> implies whole numbers only. If an ordinal is requested, test for a positive
> integer; if not an integer, leave alone, otherwise add whichever suffix is
> required.
>
> 2 -> 2nd
> 2.2 -> 2.2
> NaN -> NaN
> 4 -> 4th
> -6 -> -6

Well, it is good solution. I implement it. Or exist the other suggestion?

Karel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2000-01-06 11:06:01 Re: [HACKERS] UdmSearch: tables vs indices ...
Previous Message Peter Mount 2000-01-06 10:04:45 RE: [HACKERS] Source code format vote