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

Duncan Murdoch murdoch at stats.uwo.ca
Mon Jul 16 12:36:34 CEST 2007


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



More information about the R-devel mailing list