Re: significant figures...


[Prev][Next][Index][Thread]

Re: significant figures...



On 22 Sep 96 at 7:41, John Logan wrote:


> There have several posts of solutions to a question asked about how to
> find the number of significant digits in a real number.   I don't think
> any have addressed the following probblem, and I am wondering if it is
> possible?
>
> 2E5, 2.0E5, and 2.00E5 are all numerically equivalent, but they all have
> different numbers of sig-figs (1, 2, and 3, respectively).  Can they be
> distingished by any other method than storing the number of sig-figs in
> another variable?  Any help is appreciated.


No, a real is a real, and they don't keep track of significant digits. In
this case you'd have to keep track of your "sig-figs" some other way.


<pre>
--
 Mattias Lindqvist
 d96mli@efd.lth.se
 www.efd.lth.se/~d96mli
</pre>


References: