Find answers, ask questions, and connect with our <br>community around the world.

Home Forums Scientific computing with Python Lesson 24 quiz’s last

  • Lesson 24 quiz’s last

    Posted by Vidhyasagar Jhade on August 16, 2023 at 7:46 am

    Hi Flowtermolab Team,

    I believe there is no such function in the math module which called “round()”. I may be wrong, but I can’t see this function to round off the floating point number to the nearest integer. However, there is the function called “ceil()” and “floor()” to return integers the ceiling and floor values, respectively.

    Please correct if the quiz’s answer is wrong.


    Vidhyasagar Jhade

    Vidhyasagar Jhade replied 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Rahul

    August 16, 2023 at 2:24 pm

    Hello Vidhyasagar
    The round() function is built-in with Python and not a part of the math module. It can be used to round off the number to the nearest integer or specified decimal places. For example, consider the following code to round off the number to nearest integer:


    The output should be 11.

    You can explore the other arguments for the round() function as well.

    Best regards

    Flowthermolab Support team

  • Vidhyasagar Jhade

    August 17, 2023 at 3:10 am

    Hi Rahul,

    Thanks for clearing up the doubt.


    Vidhyasagar Jhade

Log in to reply.

error: Content is protected !!