About 395,000 results
Open links in new tab
  1. Why do round off errors occur? - Stack Overflow

    Apr 2, 2020 · 0 Can anyone explain why round off errors occur in general? Some explanations online have gone over my head on the internet and I was wondering if anyone had an easy to understand …

  2. What is a simple example of floating point/rounding error?

    What is a simple example of floating point/rounding error? Asked 17 years, 2 months ago Modified 3 years, 9 months ago Viewed 56k times

  3. Python rounding error with float numbers - Stack Overflow

    I don't know if this is an obvious bug, but while running a Python script for varying the parameters of a simulation, I realized the results with delta = 0.29 and delta = 0.58 were missing. On

  4. What is the nature of the round off error here? - Stack Overflow

    Feb 25, 2013 · It's just rounding as close as it can. 1e16 in floating hex is 0x4341c37937e08000. 1e16+2 is 0x4341c37937e08001. At this level of magnitude, the smallest difference in precision that …

  5. How to resolve a Java Rounding Double issue - Stack Overflow

    Jun 13, 2016 · I'll add a note that BigDecimal division needs to be treated a little bit differently than +,-,* since by default it will throw an exception if it cannot return an exact value (1 / 3, e.g.). In a similar …

  6. Avoiding problems with JavaScript's weird decimal calculations

    This an an entire order of magnitude out. That's some rounding error! For any floating point architecture, there is a number that represents the smallest interval between distinguishable numbers. It is called …

  7. avoid rounding error (floating specifically) c++ - Stack Overflow

    Aug 6, 2010 · Short version - you can't really avoid rounding and other representation errors when you're trying to represent base 10 numbers in base 2 (ie, using a float or a double to represent a decimal …

  8. Rounding Problem with Python - Stack Overflow

    Possible Duplicate: Python rounding error with float numbers I have a rounding Problem in Python. If i calculate 32.50 * 0.19 = 6.1749999999999998 But this should be ...

  9. Is floating-point math broken? - Stack Overflow

    Binary floating point math works like this. In most programming languages, it is based on the IEEE 754 standard. The crux of the problem is that numbers are represented in this format as a whole number …

  10. How to fix Python rounding error in Floating Point numbers without ...

    Oct 18, 2021 · If you want better results summing floating-point numbers, put them in a list and call math.fsum() on the list (and if you count math as using an external library then that is too bad). That …