Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

convert minutes into hours

Former Member
0 Kudos

Hi all,

Its a very small thing but i am not able to figure out the problem.

I need to convert minutes into hours, i.e. 30 minutes = 0.5 hours or 70 minutes = 1.16 hours.

I know i should do directly minutes/60.. But when i am doing this, its returning me 1 instead of 0.5. I am not using any rounding off functionality but its getting rounded off to 1.

Please help !!!!

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar


0 Kudos

It is basic question :

data : a type p decimals 2.

a = 70 / 60 . " 30 / 60

write a.

Former Member
0 Kudos

Hi Silky ,

Please try with a simple code.

Data : a type p DECIMALS 2 VALUE '70',

        b type p DECIMALS 2 VALUE '60',

        c type p DECIMALS 2.

c = a / b.

write c.

<Point request removed>


Message was edited by: Vinod Kumar