The int function can convert floating-point values to integers, and it performs rounding up/down as needed.

Answers

Answer 1

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.

Answer 2

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


Related Questions

Other Questions
GIVING BRAINLIEST AND EXTRA POINTS!!!Which is the function of the exoskeleton in animals?A) Produces the sperm used in reproductionB) Protects against different weatherC) Protects against their environmentD) Works with muscles to allow movement A 500.0 g sample of aluminium, I initially at 25.0 degrees, absorbs heat from its surroundings and reaches a final temperature of 90.7 degrees. How much heat (in KJ) has been absorbed by the sample? To one decimal placeSpecific heat= 0.9930j g-1 K-1 for aluminium Given that the measure of x is 149, and the measure of y is 110, find the measure of z. A bookstore owner wants to allow customers to pay for books using their mobile phones. Which version of iOS will support the bookstores desired feature?[iOS 7]/[iOS 8]/[iOS 9] will allow customers to pay for books using their iPhone through an app called [Apple Pay]/[Apple Wallet]/[Apple Passbook]It's multiple choice. Find the length of the third side. If necessary, round to the nearest tenth.2 5 The drama club sold 415 Manatee tickets to the school's play for $7.95 each 18 of the tickets were refunded estimate the tickets is your estimate and overestimate or an underestimate. PLZ HELP ASAP!!!!!! What is the arc measure of major arc ABC in degrees? The substance ammonia has the following properties: normal melting point: 195.4 K normal boiling point: 239.8 K triple point: 5.910-2 atm, 195.3 K critical point: 111.5 atm, 405.5 K At temperatures above 405.5 K and pressures above 111.5 atm, NH3 is a _________ . NH3 does not exist as a liquid at pressures below atm. NH3 is a _________ at 5.9010-2 atm and 249.5 K. NH3 is a _________ at 1.00 atm and 236.0 K. NH3 is a _________ at 24.6 atm and 185.6 K. Which religious groups bordered the French territory in the Americas?A.only British ProtestantsB.only Portuguese CatholicsC.Spanish Catholics and Dutch ProtestantsD.British Protestants and Spanish Catholicswhich one? Nutrients are molecules that can be found in______ What happens at locations where magma convection currents flow away from one another?A. Overlying, adjacent plates collide violently. B.groundwater rises to the surface.C.new crust is formed along the boundary.D.oceanic plates slide beneath continental plates.E.overlying, adjacent plates are pulled apart. In how many differentways can 5 bicycles beparked if there are 7available parkingspaces? pls pasagot Help!! Thank you so much Plz help me well mark brainliest if correct!!..... The part of a text where the action starts to decline is fuluwa fishing in the den ( into negative ) 2. Which equation describes a line that hasa slope of and a y-intercept of ?A) 5y + 4x = 2C) Sy - 4x = 2B) 4x5y = 2D) -5y - 4x = 2 How much 0.05 M HCl solution can be made by diluting 2L of 10 M HCl? PLZ ANSWER WILL BE MARKED BRAINLEST In what ways did human societies forever change after the NeolithicRevolution?A. Societies became sedentary and unequal social classes emergedB. Societies became nomadic and unequal social classes endedC. Societies became divided and religion gave way to atheismD. Societies became more peaceful and learned to speak onelanguage