round(1.923328437452, 3)
See Python’s documentation on the standard types. You’ll need to scroll down a bit to get to the round function. Essentially the second number says how many decimal places to round it to.
More Related Contents:
- 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 use a decimal range() step value?
- How do you round UP a number?
- How to avoid floating point errors? [duplicate]
- 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
- Float values as dictionary key
- 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)?
- Python floating point number comparison
- Function to determine if two numbers are nearly equal when rounded to n significant decimal digits
- Number of digits in exponent
- How to get largest possible precision? (Python – Decimal)
- 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