Set always 4 digits in decimal places

Hello. It's a basic issue but I didn't find any answer. I'd like to set 4 digits after the decimal point regardless of the number. In calculation for example I want a result like this 12345.6789 or 1.2345. I use RStudio and R 4.0.
I change the options(digits = 7) and I got this (for example)

options(digits = 7)
10/3
[1] 3.333333
100/3
[1] 33.33333
1000/3
[1] 333.3333
10000/3
[1] 3333.333
100000/3
[1] 33333.33
1000000/3
[1] 333333.3
10000000/3
[1] 3333333
100000000/3
[1] 33333333
And I want this:
10/3
[1] 3.3333
100/3
[1] 33.3333
1000/3
[1] 333.3333
10000/3
[1] 3333.3333
100000/3
[1] 33333.3333
1000000/3
[1] 333333.3333
10000000/3
[1] 3333333.3333
Thank you in advance for any help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.