Julia has a built-in function to round to n significant digits. signif(0.0229, 2) will round to two significant digits and give 0.023.
How can I chop or truncate to n significant digits so that I would get 0.022 instead?
Julia has a built-in function to round to n significant digits. signif(0.0229, 2) will round to two significant digits and give 0.023.
How can I chop or truncate to n significant digits so that I would get 0.022 instead?