You must remember that in binary, 4.1 = 4 + 1/10. 1/10 is an infinitely repeating sum in binary, much like 1/9 is an infinite sum in decimal.
More Related Contents:
- How do I get 4 instead of 4.0 in "Squirrels and nuts – 1" task? [closed]
- How do I parse a string to a float or int?
- How can I force division to be floating point? Division keeps rounding down to 0?
- How do I check if a string is a number (float)?
- How to extract a floating number from a string [duplicate]
- How do you round UP a number?
- How to truncate float values?
- How to print float to n decimal places including trailing 0s?
- How to round a floating point number up to a certain decimal place?
- Format floats with standard json module
- Python float – str – float weirdness
- Range values to pseudocolor
- Testing floating point equality
- Convert hex to float
- rounding errors in Python floor division
- What is the range of values a float can have in Python?
- What is the difference between int() and floor() in Python 3?
- How to manage division of huge numbers in Python?
- How do I check if a string represents a number (float or int)?
- Decimal place issues with floats and decimal.Decimal
- Inaccurate Logarithm in Python
- Function to determine if two numbers are nearly equal when rounded to n significant decimal digits
- Number of digits in exponent
- Python, print all floats to 2 decimal places in output
- What are some possible calculations with numpy or scipy that can return a NaN? [closed]
- Can a variable be used in Python to define decimal places
- How do you get the next value in the floating-point sequence? [duplicate]
- on what systems does Python not use IEEE-754 double precision floats
- Print a float number in normal form, not exponential form / scientific notation [duplicate]
- ‘is’ operator behaves unexpectedly with floats