2
@Amit Kumar, Vivek Kumar and Amit Gupta,
Siva aiming to use round function which is written for decimal system to round of hours and minutes. This is not possible. In hours and minutes 60 = 100 and 30 = 50. How language functions written for decimal system are expected to know that?
In some of his previous posts, I tried to explain to him that these are TWO ENTIRELY DIFFERENT things and there is no native support from language.
2
hi siva,
for this I have already give you a solution have tried that.
2
Your question was not clear to me. In the first para, you are expecting 1.3000 to 2, 0.4500 to 1. This can be achieved by using ceiling function.
And on the last para, you are asking .30 or 1.30 to 1 and 2. What was that !!
Can you brief the program scenario, for what purpose it was going to be put this logic.
2
Hi Siva,
You can get all value using ceiling function whatever you provide in your expected result. Can you elaborate more?
1
Hi Dear,
Use simple sql function celling then you will get exact result.
SELECT CEILING(1.30);
SELECT CEILING(0.4500);
SELECT CEILING(3.4600);
SELECT CEILING(2.4000);
1
hi siva, have you checked my solution
1
I have already given for your refernce see below
1
Hi Rafnas,
can you pls tell me the answer again ,im forgot to use