Respuesta :

print(x - int(x))

int(x) will round the float down to the nearest whole number x - int(x) subtracts that rounded value from the original float. This will leave the remaining decimal portion.

I hope this helps!

Double-precision is used to save the values in Python floating-point type.

You have several better choices after just two decimal places (e.g. to show a currency value): For example, Use cents, not dollars for integer values, and then divide them by 100 to translate them into dollars.

In the given choices only the last choice is correct because it would remove its integer value of x from the x value as well as leave the decimal section behind.

Therefore, the final choice is "print (x - int(x))".

Learn more:

brainly.com/question/20312196

ACCESS MORE
EDU ACCESS
Universidad de Mexico