Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Andreas Joseph Krogh <andreas(at)visena(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Thangavel, Parameswaran" <Parameswaran(dot)Thangavel(at)rsa(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue
Date: 2020-10-20 19:30:47
Message-ID: CAKFQuwYa=VsYuhCYEn+jCWc_s52h-oOVRzL696iQSJKHHbELOg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Tuesday, October 20, 2020, Andreas Joseph Krogh <andreas(at)visena(dot)com>
wrote:

> På tirsdag 20. oktober 2020 kl. 20:59:45, skrev David G. Johnston <
> david(dot)g(dot)johnston(at)gmail(dot)com>:
>
> On Tuesday, October 20, 2020, Andreas Joseph Krogh <andreas(at)visena(dot)com>
> wrote:
>>
>> there should, IMO, be a big fat warning "Don't use the float datatype, at
>> all" somewhere.
>>
>
> Chapter 8.1
>
> David J.
>
>
> 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.

David J.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Andreas Joseph Krogh 2020-10-20 19:37:14 Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue
Previous Message Andreas Joseph Krogh 2020-10-20 19:24:02 Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue