float to numeric(7,3)

Поиск
Список
Период
Сортировка
От Steve Horn
Тема float to numeric(7,3)
Дата
Msg-id CAFLkBaVDjWmjLOnazH=okEK7J+WSWFiTQoxGx4UG2azZCxb-tg@mail.gmail.com
обсуждение исходный текст
Ответы Re: float to numeric(7,3)  (Frank Bax <fbax@sympatico.ca>)
Re: float to numeric(7,3)  (Bryan Lee Nuse <nuse@uga.edu>)
Список pgsql-novice
Have a very simple question, but cannot seem to find an answer anywhere.

Using the ST_Distance function from PostGIS (http://www.postgis.org/docs/ST_Distance.html) which returns a float.

I would like to return the result of this function rounded to 3 decimal places. What is the best way to do that?

В списке pgsql-novice по дате отправления:

Предыдущее
От: Gavin Flower
Дата:
Сообщение: Re: How To Store Large Text Strings
Следующее
От: Frank Bax
Дата:
Сообщение: Re: How To Store Large Text Strings