From cspark at clemson.edu  Wed Mar 22 05:52:13 2006
From: cspark at clemson.edu (cspark at clemson.edu)
Date: Wed, 22 Mar 2006 05:52:13 +0100 (CET)
Subject: [Rd] pbinom( ) function (PR#8700)
Message-ID: <20060322045213.AB440103EF@slim.kubism.ku.dk>

Full_Name: Chanseok Park
Version: R 2.2.1
OS: RedHat EL4
Submission from: (NULL) (130.127.112.89)



pbinom(any negative value, size, prob) should be zero. 
But I got the following results. 
I mean, if a negative value is close to zero, then pbinom() calculate
pbinom(0, size, prob). dbinom() also behaves similarly. 


> pbinom( -2.220446e-22, 3,.1)
[1] 0.729

> pbinom( -2.220446e-8, 3,.1)
[1] 0.729

> pbinom( -2.220446e-7, 3,.1)
[1] 0



[Rd] pbinom( ) function (PR#8700)
cspark at clemson.edu