Re: [Rd] .Call and .C arguments

2010-03-29 Thread Roger Bergande
Thank you Ducan I'm sorry I wasen't thinking about floating point arithmetic. My problem has nothing to do with the interface. Same rounding in R directly.. Thanks for the hint. Roger __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/li

[Rd] .Call and .C arguments

2010-03-29 Thread Roger Bergande
*ansp = Rf_fround(*ap,2); UNPROTECT(1); return(ans); } #Return value in R [1] 1204.24 # expected value 1204.25 Thanks a lot for your help. Best regards Roger Bergande __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel