Re: [Bioc-devel] simple question about floor

2013-12-20 Thread Ou, Jianhong
t; > >> -Original Message- >> From: bioc-devel-boun...@r-project.org [mailto:bioc-devel-bounces@r- >> project.org] On Behalf Of Ou, Jianhong >> Sent: December-19-13 1:53 PM >> To: bioc-devel@r-project.org >> Subject: [Bioc-devel] simple question abo

Re: [Bioc-devel] simple question about floor

2013-12-19 Thread Steven McKinney
--- > From: bioc-devel-boun...@r-project.org [mailto:bioc-devel-bounces@r- > project.org] On Behalf Of Ou, Jianhong > Sent: December-19-13 1:53 PM > To: bioc-devel@r-project.org > Subject: [Bioc-devel] simple question about floor > > Hi all, > > Maybe this is not a bioconductor

[Bioc-devel] simple question about floor

2013-12-19 Thread Ou, Jianhong
Hi all, Maybe this is not a bioconductor question but R. However, I feel this is very interesting. I tried > floor(29/50*50) [1] 28 > floor(29*50/50) [1] 29 Is this a floating-point problem? How could we explain this? Yours sincerely, Jianhong Ou LRB 670A Program in Gene Function and Expres