About 8,770 results
Open links in new tab
  1. How to round decimals using bc in bash? - Ask Ubuntu

    Aug 24, 2012 · Basically, this carefully extracts the decimals, multiplies everything by 100 billion (10¹⁰, 10**10 in bash), adjusts for precision and rounding, performs the actual division, divides …

  2. Round Up Zero digits after decimal - useThinkScript Community

    Sep 10, 2020 · How do I round up so that my custom columns show zero digits after the decimal. Thus for example, if I have a number 123.45 I want to show it as 123, and if I have 12345.67 I …

  3. How to Round Up or Round Down in thinkScript

    Jan 10, 2021 · With thinkScript, you have 3 different options: round (shorten the number to a specific number of digits), round up, and round down. In this tutorial, we're going to explore all …

  4. How do you round numbers? - useThinkScript Community

    Sep 13, 2022 · input ShowDisplayBox = yes; AddLabel(ShowDisplayBox, High, color.Gray); is what I have but the price keeps showing price with 1234.345 or more numbers after decimals. …

  5. Round Up Zero digits after decimal - useThinkScript

    Sep 10, 2020 · How do I round up so that my custom columns show zero digits after the decimal. Thus for example, if I have a number 123.45 I want to show it as 123, and if I have 12345.67 I …

  6. bc: set number of digits after decimal point - Ask Ubuntu

    bc handles numbers as integers: # echo "100/3" | bc 33 bc -l handles numbers as floating point objects: # echo "100/3" | bc -l 33.33333333333333333333 Is there a way to limit the number of …

  7. Rounding Issues - useThinkScript Community

    Aug 17, 2023 · this will round the formula. but because the 2nd parameter, rounding digits, is missing, it defaults to 2, and will have a number with 2 digits to the right of the decimal point.

  8. How do you round numbers in qml to two decimal places?

    Oct 3, 2014 · I have these ridiculously long real numbers such as 33.088117576394794, and I am trying to convert them to doubles (Two decimal places). So in this case, I want 33.09. How do …

  9. How do I round numbers to the nearest integer from the …

    Jun 23, 2015 · The answers provided are good (and better than what I'm just about to mention), but just for the fun of mentionning it: a possibility is to add "0.5" to each number and keep just …

  10. command line - awk - round to 2 decimals - Ask Ubuntu

    Apr 14, 2017 · awk - round to 2 decimals Ask Question Asked 8 years, 6 months ago Modified 3 years, 7 months ago