delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/05/16:51:29

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
Date: Tue, 5 Jan 2016 16:51:17 -0500
Message-Id: <201601052151.u05LpHrp007414@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: geda-user AT delorie DOT com
In-reply-to:
<CAC4O8c8Or1FS=x18C7Zv5uu+dUOXX2My4K+njsoufNeotm_CBQ AT mail DOT gmail DOT com>
(geda-user AT delorie DOT com)
Subject: Re: [geda-user] Re: some more geometry module tweaks (sorry, wall of text)
References: <CAC4O8c-n4cHWum2MUzgDw=NLuKPK395xp_F24cSyoXhnADRskw AT mail DOT gmail DOT com>
<alpine DOT DEB DOT 2 DOT 00 DOT 1512230503390 DOT 9035 AT igor2priv>
<CAC4O8c8A271d5unQWRV=PoaEsJECgZt33Wy16uCnK6D+4LCzww AT mail DOT gmail DOT com>
<alpine DOT DEB DOT 2 DOT 00 DOT 1512260402081 DOT 9035 AT igor2priv>
<CAC4O8c-49Fn191KT-p0hXi1jXW=OeTSaNUh11pLmBQYHeGtyoA AT mail DOT gmail DOT com>
<alpine DOT DEB DOT 2 DOT 00 DOT 1512310512510 DOT 9035 AT igor2priv> <CAC4O8c8Or1FS=x18C7Zv5uu+dUOXX2My4K+njsoufNeotm_CBQ AT mail DOT gmail DOT com>
Reply-To: geda-user AT delorie DOT com

> I agree, but we may have different ideas of what the fix would be.  If you
> want to stop using floating point entirely, it's a huge effort, and ints
> won't do what you want either, you need rationals.

We use nanometers, I think that's as fixed-point as we need to get :-)

It would be rare to have a valid case where a floating format is
preferable to non-overflowing nanometers.

> My claim on this is that if your float type entirely contains the set of
> your int type, there's no doubt about how the conversion in one direction
> should work.

But using a floating type means you can ignore overflow issues and the
loss of precision therein.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019