Duncan Murdoch answered your question, but I have another. Are you going to do some computation with the rounded numbers, or are they just for display? (One thing I like about Excel is that I can change the display format of a cell without changing answers that depend on that cell.) In the latter case, why stash them in a variable? For more control of the display, consider sprintf (or a wrapper that combines sprintf with cat). Regards, Jorgen Harmse. [[alternative HTML version deleted]]
Den 2024-07-30 kl. 17:09, skrev Jorgen Harmse:> Duncan Murdoch answered your question, but I have another. Are you > going to do some computation with the rounded numbers,Wouldn't dream of it.> or are they just for display?Yes. G,> (One thing I like about Excel is that I can change > the display format of a cell without changing answers that depend on > that cell.) In the latter case, why stash them in a variable? For > more control of the display, consider sprintf (or a wrapper that > combines sprintf with cat). > > Regards, > > Jorgen Harmse. >
Reasonably Related Threads
- duplicated() on zero-column data frames returns empty
- [EXTERNAL] RE: I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
- I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
- duplicated() on zero-column data frames returns empty
- Building Packages.