Top "Rounding" questions

Rounding a numerical value means replacing it by another value that is approximately equal but has a shorter, simpler, or more explicit representation.

Python round up integer to next hundred

Seems that should have already been asked hundreds (pun are fun =) of times but i can only find function for …

python math rounding
Why does Math.round(0.49999999999999994) return 1?

In the following program you can see that each value slightly less than .5 is rounded down, except for 0.5. for (int …

java floating-point double rounding
Lua: Rounding numbers and then truncate

Which is the best efficient way to round up a number and then truncate it (remove decimal places after rounding …

lua rounding truncate
Javascript: Round up to the next multiple of 5

I need a utility function that takes in an integer value (ranging from 2 to 5 digits in length) that rounds up …

javascript math rounding
Built in .Net algorithm to round value to the nearest 10 interval

How to, in C# round any value to 10 interval? For example, if I have 11, I want it to return 10, if …

c# math rounding
Rounding necessary with BigDecimal numbers

I want to set scale of two BigDecimal numbers a and b . as in this example : BigDecimal a = new BigDecimal("2.6…

java rounding bigdecimal
Python 3.x rounding behavior

I was just re-reading What’s New In Python 3.0 and it states: The round() function rounding strategy and return type …

python python-3.x rounding
In angular 2, how to display a number as two decimal rounded currency?

Examples: 1.99 --> $1.99 1.9 --> $1.90 1 --> $1.00 1.005 --> $1.01 1.004 --> $1.00 I am using {{num | currency:'USD':true}} but it …

filter rounding angular currency
Round a double to x significant figures

If I have a double (234.004223), etc., I would like to round this to x significant digits in C#. So far …

c# math rounding significant-digits
Rounding up to the second decimal place

Possible Duplicate: PHP Round function - round up to 2 dp? What my problem is: When i use ceil(3.6451895227869); i get …

php numbers rounding ceil