Re: Cast double precision to integer & check for overflow
В списке pgsql-general по дате отправления:
| От | Ian Pilcher |
|---|---|
| Тема | Re: Cast double precision to integer & check for overflow |
| Дата | |
| Msg-id | 5104623B.40404@gmail.com обсуждение исходный текст |
| Ответ на | Re: [GENERAL] Cast double precision to integer & check for overflow ("Alexander Gataric" <gataric@usa.net>) |
| Ответы |
Re: Cast double precision to integer & check for overflow
|
| Список | pgsql-general |
On 01/26/2013 05:06 PM, Alexander Gataric wrote: > Just cast to integer. Decimal portion will be lost. That part I've got. :-) It's checking that the double precision value will actual fit within the range of the integer type (-2147483648 to +2147483647). I could certainly hard-code these values, but I'd like to use a more expressive syntax, if it is available. -- ======================================================================== Ian Pilcher arequipeno@gmail.com Sometimes there's nothing left to do but crash and burn...or die trying. ========================================================================
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера