[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-devel
Subject:    [Rd] base::format adds extraneous whitespace for some inputs
From:       "David J. Birke" <djbirke () berkeley ! edu>
Date:       2019-06-20 0:24:38
Message-ID: 13ea45cb-564b-8bd5-b75f-5c2ef53119dc () berkeley ! edu
[Download RAW message or body]

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 "9.99".

I have not found anything explaining the whitespace in the help files. 
Therefore, I am writing to report this behavior as a possible bug.

Best wishes,
David

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic