Write a function to add two floating point numbers. Determine the integer floor of the sum. The
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a function to add two floating point numbers. Determine the integer floor of the sum. The floor is the truncated float value, i.e. anything after the decimal point is dropped. For instance, floor(1.1 + 3.05) = floor(4.15) = 4.
Function Description
Complete the function addNumbers in the editor below.
The function must return an integer representing the floor of the sum of two floating point numbers.
addNumbers has the following parameters(S):
a: a floating point number
b: a floating point number
Note : Write this Program in Python 3.
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date: