Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ordinal number format

5 views
Skip to first unread message

jxp

unread,
Oct 11, 2009, 12:03:08 AM10/11/09
to
I need to format a number as an ordinal. In my native language
(Portuguese) I just have to add a "º" or "ª" symbol to the number (eg:
1º, 2º, etc.) whereas in English it depends on the number (eg: 1st,
2nd, 3rd, 4th, etc.).
Is there any way to format a number as an ordinal, depending on the
current culture?

Thanks for your help.
Joel

Mihai N.

unread,
Oct 11, 2009, 5:31:12 AM10/11/09
to
> Is there any way to format a number as an ordinal, depending on the
> current culture?

No.


> I need to format a number as an ordinal. In my native language

> (Portuguese) I just have to add a "�" or "�" symbol to the number (eg:
> 1�, 2�, etc.) whereas in English it depends on the number (eg: 1st,
> 2nd, 3rd, 4th, etc.).

Basically you already give a hint of why it is unlikely to happen.

And at least in English is easy to come with a rule that a computer can
understand (what it the numeric value).
But in Portuguese it depends on the gender of the thing you count.
How is a stupid computer able to decide if something is masculine or
feminine? (except with a very comprehensive dictionary)


--
Mihai Nita [Microsoft MVP, Visual C++]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email

0 new messages