diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 293605396964f0aa78de10f5edc20eb89de08a5a..699884d8003400f363af5be5cdfcf06d7b7882b9 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.219 2007/11/27 06:05:57 momjian Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.220 2007/11/27 16:46:36 momjian Exp $ --> <chapter id="datatype"> <title id="datatype-title">Data Types</title> @@ -848,8 +848,14 @@ ALTER SEQUENCE <replaceable class="parameter">tablename</replaceable>_<replaceab <programlisting> SELECT 1234::text::money; </programlisting> - There is no simple way of doing the reverse using a locale-neutral - method, namely casting a <type>money</type> value to a numeric type. + There is no simple way of doing the reverse in a locale-independent + manner, namely casting a <type>money</type> value to a numeric type. + If you know the currency symbol and thousands separator you can use + <function>regexp_replace()</>: +<programlisting> +SELECT regexp_replace('52093.89'::money::text, '[$,]', '', 'g')::numeric; +</programlisting> + </para> <para>