Round numbers to any decimal place #168
Unanswered
sergeevabc
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Maybe there should be a built-in function for that, but you can also add something like this yourself roundTo(x, p) = round(x * 10^(p - 1)) / 10^(p - 1) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear @PaddiM8, let's say there is a file, it takes up 12 350 976 bytes, I want to see how much it is in megabytes, but at the same time round it to the nearest tenths or hundredths. Truncate does not fit.
Beta Was this translation helpful? Give feedback.
All reactions