Discussion
How would you round off a value from 1.66 to 2.0?
Answer: A
Correct answer: ceil(1.66)
ceil returns the smallest integer not less than its argument, so 1.66 becomes 2.0. floor would give 1.0, and neither roundup nor roundto exists in the standard library - the standard rounding function is round.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development