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

Reply via email to