To convert float to integer the truncation is performed, but the
rounding is expected.
Test: Add (4.9, 4.9) should return 10.
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
Allow using float point arguments to avoid truncation.
Test: Add (4.9, 4.9) should return 10.
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
formatting: use tabs instead of spaces
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
The current implementation does not contain guard and it works well,
but it may lead to problems in the future.
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
Introduce the `Calculator` class with single member-function which
performs an addition.
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>