| От | Josh Berkus |
|---|---|
| Тема | Re: Possible rounding error of large float values? |
| Дата | |
| Msg-id | 200408241252.30182.josh@agliodbs.com обсуждение исходный текст |
| Ответ на | Possible rounding error of large float values? ("Adam Lancaster" <alancaster@preventsys.com>) |
| Ответы |
Re: Possible rounding error of large float values?
|
| Список | pgsql-sql |
Adam, > 9223372036854775807 > > It gets selected out as: > > 9.22337203685478E18 This is a property of FLOAT data types. They round. > Which appears to be rounded. When we cast it to numeric type we get: > > 9223372036854780000 > > Which also is rounded. It is still possible to find the row using the > original value Hmmm ... is 15 digits the limit of NUMERIC? It may be. > Is this expected behavior? Yes. -- Josh Berkus Aglio Database Solutions San Francisco
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера