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.

Rounding of calculated measure in MDX

How can i round a calculated mdx measure up to the nearest integer without having Excel on the server? The …

rounding mdx ssas
Why do lots of (old) programs use floor(0.5 + input) instead of round(input)?

The differences reside in the returned value giving inputs around tie-breaking I believe, such as this code: int main() { std::…

c++ rounding floor
Decimal places in CSS percentage

OK, I've searched far and wide and come up with nothing more than anecdotal evidence to suggest that there is …

css rounding percentage
How do I round millions and thousands in JavaScript?

I am trying to round large digits. For instance, if I have this number: 12,645,982 I want to round this number …

javascript jquery rounding number-formatting shorthand
Lodash rounding precision

I'm trying to display a number as a percent by using _.round and then by multiplying the number by 100. For …

javascript rounding percentage lodash floating-point-precision
Why does Convert.ToInt32() round to the nearest even number, instead of nearest whole number?

Looking at the msdn documentation for Convert.ToInt32() it states: If value is halfway between two whole numbers, the even …

c# decimal rounding int32
Why does the floating-point value of 4*0.1 look nice in Python 3 but 3*0.1 doesn't?

I know that most decimals don't have an exact floating point representation (Is floating point math broken?). But I don't …

python floating-point rounding floating-accuracy ieee-754
Use php money format and remove the numbers after the decimal place for GBP

I want to format some numbers from my analytics into currency using the GB money format but as its for …

php rounding money-format
Convert/Quantize Float Range to Integer Range

Say I have a float in the range of [0, 1] and I want to quantize and store it in an unsigned …

floating-point integer rounding quantization
How to round of CGFloat value

Possible Duplicate: NSNumberFormatter for rounding up float values Currently, I calculate the scaling factor by using : CGFloat scale = CGContextGetCTM(context).…

iphone objective-c rounding cgcontext cgfloat