Python में truncation करने के लिए कौन सा method प्रयोग किया जाता है?
Which method is used to truncate a number in Python?
A
round()
B
floor()
C
ceil()
D
math.trunc()
Explanation
Truncation का मतलब है किसी decimal संख्या से fractional हिस्सा हटा देना — यानी केवल integer part को रखना, बिना round किए।
Python में truncation के लिए इस्तेमाल होता है:
math.trunc()
🔹 Example / उदाहरण:
Correct Answer: D) math.trunc()