[R] Round down numeric values with decimals

Nelly Reduan nell@redu @ending from hotm@il@fr
Tue Sep 4 18:32:56 CEST 2018


How can I round down numeric values with decimals? For example,

> signif(3.896037e+09, digits = 1)

[1] 4e+09

The expected result is 3e+09 (and not 4e+09).

> signif(8.68542378e-10, digits = 1)

[1] 9e-10

The expected result is 8e-10 (and not 9e-10).

Thank you very much for your time.

Have a nice day


	[[alternative HTML version deleted]]

More information about the R-help mailing list