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.
cancel
Showing results for 
Search instead for 
Did you mean: 

convert minutes into hours

Former Member
0 Kudos
151

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

2 REPLIES 2

Aashish28
Contributor
0 Kudos
74

It is basic question :

data : a type p decimals 2.

a = 70 / 60 . " 30 / 60

write a.

Former Member
0 Kudos
74

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>

Yukti

Message was edited by: Vinod Kumar