Re: a very primitive question about division

Поиск
Список
Период
Сортировка
От Martin Mueller
Тема Re: a very primitive question about division
Дата
Msg-id 353422DD-62B4-4301-B9D4-E42BD03E3376@northwestern.edu
обсуждение исходный текст
Ответ на Re: a very primitive question about division  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general

I see the logic of that, but I also think that this is not how many users think when they want to know how to get results for 4/9.  Note that division is a great stumbling block in middle school.  They want to know how to divide four by nine and don’t want to think about division and formatting as separate operations to be looked up in separate chapters. Perhaps they should think that way, but they don’t, and as Adenauer, modern Germany’s first chancellor,  observed: you have to take people as they come because there are no others.

 

At the least the table 9.5 in 9.3  could have an NB about the problem of decimals in division, together with an example of how to do 4/9 in different formats, and a reference to the fuller discussion.

 

From: "David G. Johnston" <david.g.johnston@gmail.com>
Date: Wednesday, March 7, 2018 at 12:11 PM
To: Martin Mueller <martinmueller@northwestern.edu>
Cc: "pgsql-general@lists.postgresql.org" <pgsql-general@lists.postgresql.org>
Subject: Re: a very primitive question about division

 

But there is no example of 4/9 and the different ways of formatting it as a decimal fraction with different options for rounding or a percentage.

 

​That would be the responsibility of the "Data Type Formatting Functions" chapter and the "to_char" function it describes.

 

David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: a very primitive question about division
Следующее
От: PegoraroF10
Дата:
Сообщение: Replication pull instead of push