Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: strange behavior of int() function...not truncating properly


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: strange behavior of int() function...not truncating properly
Date   Tue, 30 Jan 2007 12:30:30 -0000

Missing reference: 

SJ-6-4  pr0025  . . . . . . . . . . . . . . . . . . .  Mata matters: Precision
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . W. Gould
        Q4/06   SJ 6(4):550--560                                 (no commands)
        looks at programming implications of the floating-point,
        base-2 encoding that modern computers use

Nick 
[email protected] 

n j cox
 
> The same issue is discussed at
> FAQ     . . . . . . . . . . . . . . . . . . . Results of the mod(x,y) 
> function
>          2/03    Why does the mod(x,y) function sometimes give
>                  puzzling results?
>                  Why is mod(0.3,0.1) not equal to 0?
>                  http://www.stata.com/support/faqs/data/mod.html
> 
> and in a more recent Mata matters column by William Gould.

*
*   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