Get reliable answers to your questions at Westonci.ca, where our knowledgeable community is always ready to help. Discover solutions to your questions from experienced professionals across multiple fields on our comprehensive Q&A platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.
Sagot :
Answer:
False
Explanation:
The int() function is a built-in function found in Python3. This function can be used on floating-point values as well as strings with numerical values, etc. Once used it will convert the floating-point value into an integer whole value. However, it will always round the value down to the nearest whole number. This means that both 3.2 and 3.7 will return 3 when using the int function.
The int() does not perform rounding up/down of a float. It only print the
integer.
The int() function in python converts any specified number into an integer. It
does not round the decimal up or down.
For example
x = 20.90
y = int(x)
print(y)
Normally the float number of x (20.90) is suppose to be rounded up to 21 but
python int() function only takes the whole number i.e. the integer number
The program above will print an integer of 20. There is no rounding up or
down for python int() function.
learn more: https://brainly.com/question/14702682?referrer=searchResults
We hope this information was helpful. Feel free to return anytime for more answers to your questions and concerns. Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.