From c@g|||e@p|e @end|ng |rom gm@||@com  Sat Jan  1 20:24:01 2022
From: c@g|||e@p|e @end|ng |rom gm@||@com (Colin Gillespie)
Date: Sat, 1 Jan 2022 19:24:01 +0000
Subject: [Rd] Documentation for floor, ceiling & trunc
Message-ID: <CADbDLZkcaK+2E_KA6+NwBhXDYhKjF-KbR9YXtzt6DjDDjH7Hyg@mail.gmail.com>

Hi,

The documentation for floor, ceiling and trunc is slightly ambiguous.

"floor takes ... and returns a numeric vector containing the largest
integers ..."

My initial thought was that floor() would return a vector of integers.
Instead, it returns a vector of doubles, i.e c(1L, 2L) vs c(1, 2)

 * Could the docs be changed
 * Would it be worth returning integers instead?

Thanks

Colin



[Rd] Documentation for floor, ceiling & trunc
Colin Gillespie