Re: [HACKERS] ordinal decimal number
Karel Zak <zakkr@zf.jcu.cz>
From: Karel Zak - Zakkr <zakkr@zf.jcu.cz>
To: Oliver Elphick <olly@lfix.co.uk>
Cc: "J. Roeleveld" <j.roeleveld@softhome.net>, pgsql-hackers <pgsql-hackers@postgreSQL.org>
Date: 2000-01-05T13:51:35Z
Lists: pgsql-hackers
On Wed, 5 Jan 2000, Oliver Elphick wrote: > "J. Roeleveld" wrote: > >> Hi, > >> > >> I add to the to_char() routine "ordinal-number" feature, but my > >> English is insufficient for this :-( (sorry) > > > >There are enough people that speak English, what we don't have enough > >of on this world are people that know what they can and can't do :) > > > >> I good know how is it for non-decimal numbers, but if number has > >> decimal part? > >> > >> Example: 2.6 --> 2.6th > >> or 2.6 --> 2.6nd > > > >It's: 2.6 --> 2.6th > > It isn't really possible to have an ordinal with decimal places in > English; it sounds very awkward. > > Ordinals designate placing in a list; a computer example would be an > array index. How can such a number have decimal places? I implement it to to_char (ordinal with decimal places), but is user choise if use or not use it... Karel