Re: [Rd] error in trunc function (PR#9782)

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Mon, 16 Jul 2007 06:36:34 -0400

focus17_at_libero.it wrote:
> Full_Name: Claudio
> Version: 2.5.1
> OS: windows
> Submission from: (NULL) (157.138.120.198)
>
>
> the command get a wrong result
>
>
>> trunc(2.3*100)
>>
> 229
That is the correct answer. 2.3 is not representable exactly; the actual value used is slightly less.

Duncan Murdoch



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 16 Jul 2007 - 10:54:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 Jul 2007 - 12:38:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.