Python Programming - Data Types - Discussion
Discussion Forum : Data Types - General Questions (Q.No. 34)
34.
How do you convert a floating-point number to an integer?
Answer: Option
Explanation:
The
int()
function can be used to convert a floating-point number to an integer by truncating the decimal part.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers