> as.character(seq(-.25,.95,.1))
  [1] "-0.25" "-0.15" "-0.05" "0.05"  "0.15"  "0.25"  "0.35"  "0.45"   
"0.55"  "0.65"  "0.75"  "0.85"  "0.95"

 > as.character(seq(-.35,.95,.1))
  [1] "-0.35"               "-0.25"                
"-0.15"               "-0.0499999999999999" "0.05"
  [6] "0.15"                "0.25"                 
"0.35"                "0.45"                "0.55"
[11] "0.65"                "0.75"                 
"0.85"                "0.95"

Not a big deal, just curiosity:
Why do I obtain this "ugly" "-0.0499999999999999" instead of the  
expected "-0.05" ?

Regards
K.

______________________________________________
R-help@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.

Reply via email to