From: Jan Wieck <JanWieck@Yahoo.com>
To: aspire420@hotpop.com
Cc: Michael Glaesemann <grzm@myrealbox.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] IEEE 754
Date: Mon, 12 Jan 2004 12:12:40 -0500
Message-ID: <4002D588.4030503@Yahoo.com> (raw)
In-Reply-To: <4002E0B3.70607@sancharnet.in>
References: <200401050051.i050pDF22348@candle.pha.pa.us>
<8C33EA12-3F44-11D8-BA4F-000A95C88220@myrealbox.com>
<4002B153.7030705@Yahoo.com>
<4002CCFE.7090402@sancharnet.in>
<4002CF1D.3030406@Yahoo.com>
<4002E0B3.70607@sancharnet.in>
Sai Hertz And Control Systems wrote:
> Dear Jan Wieck ,
>
>>>
>>> Yes I agree with you Jan , most of the time we round the amount and
>>> this is done by truncating greater than 3 decimal digits and
>>> rounding the 3 digit to 2 in other words :
>>> select trunc(1000.236897,3);
>>> then
>>> selecr round(1000.236,2);
>>> This takes care of the rounding factor in money as per Indian
>>> standards ok, how will you verify it simple just use log and you will
>>> get the correct output.
>>
>>
>> People are often under the impression that effective APR's and all
>> that stuff fall into the same category as your bank or credit card
>> account balance. But that is not true.
>
> What are you suggesting thattruncing and rounding is not good in
> financial terms
If that is what Indian accounting rules require, that is what you do.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: JanWieck@Yahoo.com, aspire420@hotpop.com, grzm@myrealbox.com, pgman@candle.pha.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] IEEE 754
In-Reply-To: <4002D588.4030503@Yahoo.com>
References: <200401050051.i050pDF22348@candle.pha.pa.us> <8C33EA12-3F44-11D8-BA4F-000A95C88220@myrealbox.com> <4002B153.7030705@Yahoo.com> <4002CCFE.7090402@sancharnet.in> <4002CF1D.3030406@Yahoo.com> <4002E0B3.70607@sancharnet.in> <4002D588.4030503@Yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox