[Rd] zapsmall (PR#7755)

From: <vosp_at_mail.ecu.edu>
Date: Tue 29 Mar 2005 - 14:52:07 GMT


Full_Name: Paul Vos
Version: 2.0.1
OS: windows XP
Submission from: (NULL) (150.216.148.20)

> zapsmall(.3-.2-.1,digits=7)

[1] -2.775558e-17

This should be zero. By changing the condition if (mx > 0)
in zapsmall to
if (mx > 1)
we get

> zapsmall(.3-.2-.1,digits=7)

[1] 0



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Mar 30 00:56:04 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:02 GMT