JOIN
Get Time
forums  Revision History
Search My Post History  |  My Watches  |  User Settings
Forums Tutorial Discussions Representation of Integers and Reals Tutorial Re: Green Zone/Red Zone Revision History (1 edit)
Re: Green Zone/Red Zone (response to post by Kawigi)
> I'm not sure if there is a computing architecture which remembers how many signficant digits it has, but it sounds possible in some convention or another.

Some CPUs (Intel and compatibles) will signal precision loss, e.g when subtracting two almost equal floats (where the result is almost complete garbage). But that info is typically not (or not easily) available to high level programming.
There you may implement arithmetic on intervals if You want to keep track of actual error.
Re: Green Zone/Red Zone (response to post by Kawigi)
> I'm not sure if there is a computing architecture which remembers how many signficant digits it has, but it sounds possible in some convention or another.

Some CPUs (Intel and compatibles) will signal precision loss, e.g when subtracting two almost equal floats (where the result is almost complete garbage). But that info is typically not (or not easily) available to high level programming.