public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vladimir G. Ivanovic" <vgivanovic@comcast.net>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] gcc 4.1 + CFLAGS
Date: Fri, 09 Jun 2006 13:22:55 -0700	[thread overview]
Message-ID: <1149884575.13126.34.camel@scarlatti.leonora.org> (raw)
In-Reply-To: <20060609175621.GA16287@sgi.com>

On Fri, 2006-06-09 at 10:56 -0700, Bob Sanders wrote:
> If your file system driver is calculating where to place the beginning of a
> file or where to link the tail of one record to the head or the following
> record, one digit mis-calculation could have a bad consequence.  And way,
> way back in the bad old PDP-11 days, file systems did use FP.  I'd
> guess a few modern ones might be using it today.

Blocks, offsets, inodes, and pointers (addresses) are all "integers", so
why would one use floating point? Anyway, floating point is not allowed
in the Linux kernel, and drivers are part of the kernel.

>         
> 
> Also, most financial transactions require a minimum of 4 digits to the right
> of the decimal place.  Again, a single digit error can cause some folks to
> get very, very upset.

http://en.wikipedia.org/wiki/Floating_point#Accuracy.2C_and_misconceptions_thereof
"...financial software tends not to use a binary floating-point number
representation. The "decimal" data type of the C# and Java programming
languages, and the IEEE 854 standard, are designed to avoid the problems
of binary floating point, and make the arithmetic always behave as
expected when numbers are printed in decimal." 

--- Vladimir

-- 
Vladimir G. Ivanovic <vgivanovic@comcast.net>
-- 
gentoo-amd64@gentoo.org mailing list



  reply	other threads:[~2006-06-09 20:33 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-09  3:59 [gentoo-amd64] gcc 4.1 + CFLAGS Fernando Boaglio
2006-06-09  4:46 ` brian
2006-06-09  5:47   ` Michael Weyershäuser
2006-06-09 11:19     ` Vladimir G. Ivanovic
2006-06-09 11:59       ` Michael Weyershäuser
2006-06-09 12:13         ` Vladimir G. Ivanovic
2006-06-09 12:45           ` Mike Arthur
2006-06-09 13:38           ` Hemmann, Volker Armin
2006-06-09 12:13       ` Ian McCulloch
2006-06-14 14:13         ` Paul de Vrieze
2006-06-09 13:36   ` Hemmann, Volker Armin
2006-06-09 17:11     ` Vladimir G. Ivanovic
2006-06-09 17:56       ` Bob Sanders
2006-06-09 20:22         ` Vladimir G. Ivanovic [this message]
2006-06-09 21:14           ` Barry.SCHWARTZ
2006-06-09 21:42             ` Vladimir G. Ivanovic
2006-06-09 22:28               ` Hemmann, Volker Armin
2006-06-14 14:30                 ` Paul de Vrieze
2006-06-09 23:02               ` Barry.SCHWARTZ
2006-06-09 18:50       ` Hemmann, Volker Armin
2006-06-09 20:45         ` Vladimir G. Ivanovic
2006-06-09 22:32           ` Hemmann, Volker Armin
2006-06-14 14:43             ` Paul de Vrieze
2006-06-09  4:57 ` Michael Weyershäuser
2006-06-09  7:11 ` Adam James
2006-06-09  9:13 ` Simon Strandman
2006-06-09  9:53 ` Samir Mishra
2006-06-09 11:33   ` Kirby Walborn
2006-06-09 11:40     ` Simon Stelling
2006-06-09 12:01       ` Vladimir G. Ivanovic
2006-06-09 12:15         ` Simon Stelling
2006-06-09 13:21         ` Samir Mishra
2006-06-09 17:32     ` [gentoo-amd64] " Duncan
2006-06-09 18:57   ` Duncan
2006-06-10 21:09     ` Samir Mishra
2006-06-11 14:33       ` [gentoo-amd64] " Duncan
2006-06-11 16:11         ` Vladimir G. Ivanovic
2006-06-11 17:38           ` [gentoo-amd64] " Duncan
2006-06-11 18:09             ` Barry.SCHWARTZ
2006-06-10 21:14     ` [gentoo-amd64] " Samir Mishra
2006-06-09 13:40 ` [gentoo-amd64] " Hemmann, Volker Armin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1149884575.13126.34.camel@scarlatti.leonora.org \
    --to=vgivanovic@comcast.net \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox