Write a function that receives a positive floating-point number and rounds it to two decimal places. For example, 127.565031 rounds to 127.570000. Hint: To round, you must convert the floating-point number to an integer and then hack to a floating-point number. Print the rounded numbers to six decimal places. lest the function with the following data:
1 2 3 . 4 5 6 7 8 9 1 2 3 . 4 9 9 9 9 9 1 2 3 . 5 0 0 0 0 1
The post Write a function that receives a positive floating-point = appeared first on Assignment Freelancers.