From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Sh A Guru Prasad <guru(at)ap(dot)nic(dot)in> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: (none) |
Date: | 2003-12-30 16:21:02 |
Message-ID: | 20031230162102.GB29408@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Tue, Dec 30, 2003 at 19:32:03 +0530,
Sh A Guru Prasad <guru(at)ap(dot)nic(dot)in> wrote:
>
> Hi, How to convert number format (with decimal) into
> integer only ex:to conver 100.00 to 100.
Depending on what kind of rounding you want, you can just cast to
an integer. You could also use ceil, floor or round.
> One more
> Do we have any code to convert number to words
> ex: 1234 to one thousand two hundredn and thirty four.
I don't think there is currently a supplied function to do this. You
will need to write your own.
> (I want to use for indian currency only, i will use crores
> instead of billions)
>
> Thank you
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | PostgreSQL Bugs List | 2003-12-31 06:15:06 | BUG #1038: Upon reload of data to install of v7.41 defaults for fields get screwed up |
Previous Message | Sh A Guru Prasad | 2003-12-30 14:02:32 | decimal to integer, number to words |