[R] About infinite value

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Mon Jul 23 12:06:23 CEST 2007


arigado wrote:
> Hi everyone
>
> I have a problem about "infinite".
> If I type 10^308, R shows "1e+308"
> When I type 10^309, R shows "Inf"
> So, we know if a value is large than 1.XXXe+308, R will show "Inf"
> How can i do let the value, like "10^400" ,typed in R to show the word
> "1e+400" not "Inf"
>
>   
1. You can't, due to the computer representation of floating point numbers.

2. Package brobdingnag lets you do it anyway.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list