float value is rounded - Mailing list pgsql-hackers

From Pavel Stehule
Subject float value is rounded
Date
Msg-id 162867790911251021w497da616r53b0a46002249117@mail.gmail.com
Whole thread Raw
Responses Re: float value is rounded
List pgsql-hackers
Hello

I was surprised with rounding relative not big value. Is it correct?

postgres=# select 499188.546875::real;float4
────────499189
(1 row)

regards

Pavel Stehule


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: tsearch parser inefficiency if text includes urls or emails - new version
Next
From: Tom Lane
Date:
Subject: Re: [PATCH 4/4] Add tests to dblink covering use of COPY TO FUNCTION