Re: [cc65] Floating point support?

From: Groepaz <groepaz1gmx.net>
Date: 2004-09-27 17:53:58
On Monday 27 September 2004 17:50, Karri Kaksonen wrote:
> I just want to add my comments to the discussion about floating point.
> It would be nice to be able to calculate ranges around -1.0 to 1.0 with
> decent accuracy for doing matrix stuff.
> 
> In the early days I used a routine called FRACMUL quite a lot. Basically
> it represents just the 16 bit mantissa.
[snip]

what you describe is fixed-point math, and exactly _not_ what floats are :=P

if you need fixed point, use a bunch of macros or a fixed point lib....this
shouldnt be supported by a non standard "fixedpoint" or even worse a non
standard float type imho.

gpz
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Sep 27 17:55:08 2004

This archive was generated by hypermail 2.1.8 : 2004-09-27 17:55:16 CEST