[R] extra .

Gabor Grothendieck ggrothendieck at gmail.com
Fri Aug 21 12:33:10 CEST 2009


It has no effect.  Both 6 and 6. represent the number six
as a double:

> identical(6, 6.)
[1] TRUE
> typeof(6.)
[1] "double"

On Thu, Aug 20, 2009 at 10:34 PM, kfcnhl<zhengchenji18 at hotmail.com> wrote:
>
> sigma0 <- sqrt((6. * var(maxima))/pi)
>
> What does the '.' do here?
> --
> View this message in context: http://www.nabble.com/extra-.-tp25073255p25073255.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list