Indeed, it is a very low number, awfully close to zero. Here’s a great article which can help you understand the common challenges and pitfalls of floats: “What Every Computer Scientist Should Know About Floating-Point Arithmetic“
More Related Contents:
- math.sin incorrect result
- Sieve of Eratosthenes – Finding Primes Python
- Python math is wrong [duplicate]
- Check if a number is a perfect square
- Convert a number range to another range, maintaining ratio
- How can I convert radians to degrees with Python?
- C and Python – different behaviour of the modulo (%) operation
- How to make scipy.interpolate give an extrapolated result beyond the input range?
- Round float to x decimals?
- Math operations from string [duplicate]
- Difference between the built-in pow() and math.pow() for floats, in Python?
- How can I quickly estimate the distance between two (latitude, longitude) points?
- Euclidean algorithm (GCD) with multiple numbers?
- How to get all combination of n binary value? [duplicate]
- how can i show an irrational number to 100 decimal places in python?
- Is cube root integer?
- Finding Signed Angle Between Vectors
- Rotate point about another point in degrees python
- Python floating-point math is wrong [duplicate]
- Computing Standard Deviation in a stream
- Inaccurate Logarithm in Python
- How to pad a string with leading zeros in Python 3 [duplicate]
- What’s the simplest way to extend a numpy array in 2 dimensions?
- Rounding floats so that they sum to precisely 1
- How to perform bilinear interpolation in Python
- Why is sin(180) not zero when using python and numpy?
- Where can I inspect Python’s math functions?
- Getting the subsets of a set in Python
- Convert Latitude and Longitude to point in 3D space
- How do I get a decimal value when using the division operator in Python?