Solved

# value

Posted on 2005-04-19
Medium Priority
233 Views
what is value for floor(4.9999)+ cel(2.0)
0
Question by:cuong5985
• 2

LVL 30

Expert Comment

ID: 13816520
Hi cuong5985,

Without know what is a floor, and waht is a cel, that question is difficult to answer.

David Maisonave :-)
Cheers!
0

Author Comment

ID: 13816541
i mean floor(4.9999) + ceil(2.0) i dont know what floor mean, but ceil is round up
0

LVL 30

Expert Comment

ID: 13816576
>> mean floor(4.9999) + ceil(2.0) i dont know what floor mean, but ceil is round up

Since floor is not part of the C++ standard, we can not answer your question without seeing the implementation.
Post the code.
0

LVL 16

Accepted Solution

PaulCaswell earned 80 total points
ID: 13816589
floor rounds down so floor(4.9999) = 4
ceil rounds up so ceil(2.0) = 2

I will leave it up to you to calculate 4 + 2 ;)

Paul
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
###### Suggested Courses
Course of the Month17 days, 2 hours left to enroll