Adding Two Numbers
Problem Overview
- Compute the integer floor of the sum of two floating-point numbers.
- Input: two floats (a, b); Output: an int equal to floor(a + b).
- Constraints: 0.1 < a, b < 10^6, with at most 8 decimal places.
- Real-world context: numeric processing where decimals are dropped, e.g., finance or data cleanup.
- An Oracle interview question often seen in coding interview problem sets.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
