Skip to content
Prev 345466 / 398502 Next

speed issue in simulating a stochastic process

<SNIP>
<SNIP>
<SNIP>

The constant "1L" is stored as an integer; the constant "1" is stored as 
double precision.  This sometimes makes no difference and sometimes 
makes a huge difference (especially in the context of numerical 
comparisons).  If something is supposed to be an integer it is safer to 
use the "L" form.

See ?NumericConstants.

cheers,

Rolf Turner