Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: storage problem


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: storage problem
Date   Tue, 14 Dec 2004 16:59:13 -0000

Because your computer is using binary... 

Search the archives for "binary decimal precision"
(e.g.) 

Nick 
[email protected] 

Eric Cahuzac
> 
> I have the following problem:
> I try to insheet a txt file where the number 24.456 appear: 
> insheet using toto.txt, delim(" ")
> ----------------------
> NOM MATH PHYS FRAN ANGL
> jean 6.00 6.00 5.00 5.50
> alan 8.00 8.00 8.00 8.00
> anni 6.00 7.00 11.00 9.50
> moni 14.50 14.50 15.50 24.456
> didi 14.00 144.56 12.00 12.530
> andr 11.00 10.00 5.50 7.00
> pier 5.50 7.00 14.00 11.50
> brig 13.00 128.50 8.50 9.50
> evel 9.00 9.50 12.50 12.00
> -----------------------------
> all is perfect except that the number 24.456 is stored as 24.455999 
> This is just this number that causes problem
> Why? Any suggestions would be welcome.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index