From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <91a6ba03df805db6ccef6e8c48af88eb@coraid.com> References: <158d5dc0571fa04cab44a99b3fdf5921@kw.quanstro.net> <84f53dabe8357c852216d6c9024f6eb0@coraid.com> <91a6ba03df805db6ccef6e8c48af88eb@coraid.com> Date: Thu, 13 May 2010 16:53:02 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] hoc output format Topicbox-Message-UUID: 206d6baa-ead6-11e9-9d60-3106f5b1d025 sorry, misunderstanding, i meant that (64-bit) floating point is ok for integer ops if you stick to 32 bit and don't do divisions. On 13 May 2010 16:31, erik quanstrom wrote: > On Thu May 13 11:28:29 EDT 2010, rogpeppe@gmail.com wrote: >> On 13 May 2010 15:23, erik quanstrom wrote: >> > i typically do programming calculations and floating point >> > just isn't the right way to do that. >> >> it's ok if you stick to 32 bit and don't do divisions. > > what!? > > acid: (1<<36) / 10\Y > 0x0000000199999999 > acid: 0x0000000199999999*10\Y > 0x0000000ffffffffa > > works for me. > > - erik > >