Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue
От | Tom Lane |
---|---|
Тема | Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue |
Дата | |
Msg-id | 674136.1603223598@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue
|
Список | pgsql-jdbc |
"David G. Johnston" <david.g.johnston@gmail.com> writes: > On Tuesday, October 20, 2020, Andreas Joseph Krogh <andreas@visena.com> > wrote: >> Many, at least non-programmers, expect computers to act like calculators >> when it comes to numbers and arithmetic operations, and I can't blame them. > Our target audience here is programmers so while I agree with the > observation I don’t see its relevance. Programming computers and using > numbers means at some point you need to be at least aware of floating point > dynamics and choose appropriate data types. The SQL standard specifically defines FLOAT and DOUBLE PRECISION as being "approximate numeric types", and goes on at some length about the difference between those and "exact numeric types". Whether or not a SQL user has ever studied numerical analysis, I would expect her to be familiar with this property of the standard SQL data types. regards, tom lane
В списке pgsql-jdbc по дате отправления: