search for: djbirk

Displaying 2 results from an estimated 2 matches for "djbirk".

Did you mean: djbirke
2019 Jun 20
2
base::format adds extraneous whitespace for some inputs
Dear R Core Team, First of all, thank you for your amazing work on developing and maintaining this wonderful language. I just stumbled upon the following behavior in R version 3.6.0: format(9.91, digits = 2, nsmall = 2) format(9.99, digits = 2, nsmall = 2) yield "9.91" and " 9.99" with an extraneous whitespace. My expected output for the second command is
2019 Jun 20
0
base::format adds extraneous whitespace for some inputs
...2) [1] "99.94" > format(99.95, digits = 3, nsmall = 2) [1] " 99.95" > > format(99.94, digits = 3, nsmall = 2, trim=TRUE) [1] "99.94" > format(99.95, digits = 3, nsmall = 2, trim=TRUE) [1] "99.95" On Thu, Jun 20, 2019 at 3:19 AM David J. Birke <djbirke at berkeley.edu> wrote: > > Dear R Core Team, > > First of all, thank you for your amazing work on developing and > maintaining this wonderful language. > > I just stumbled upon the following behavior in R version 3.6.0: > > format(9.91, digits = 2, nsmall = 2) > f...