Feb 23, 2004 #1 BettsPaul Technical User Feb 23, 2004 1 GB How can I display a number which I have in hours to display in Days Hours and possibly minutes
Feb 23, 2004 #2 MJRBIM MIS May 30, 2003 1,579 CA What format is your hours field in - number (35.75) or integer(36)? Upvote 0 Downvote
Feb 23, 2004 #3 MJRBIM MIS May 30, 2003 1,579 CA Insert the formulas below...update the {Table.HOURS} field with your own {Table.Field} Name : {@DAYS} Formula : Int ({Table.HOURS}/24) Name : {@HOURS} Formula : Int ({Table.HOURS} - (Int ({Table.HOURS}/24) * 24)) Name : {@MINUTES} Formula : ({Table.HOURS} - Int ({Table.HOURS})) * 60 It returns data as follows... HOURS @DAYS @HOURS @MINUTES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 36.00 1 12 0 35.75 1 11 45 77.50 3 5 30 48.00 2 0 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Upvote 0 Downvote
Insert the formulas below...update the {Table.HOURS} field with your own {Table.Field} Name : {@DAYS} Formula : Int ({Table.HOURS}/24) Name : {@HOURS} Formula : Int ({Table.HOURS} - (Int ({Table.HOURS}/24) * 24)) Name : {@MINUTES} Formula : ({Table.HOURS} - Int ({Table.HOURS})) * 60 It returns data as follows... HOURS @DAYS @HOURS @MINUTES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 36.00 1 12 0 35.75 1 11 45 77.50 3 5 30 48.00 2 0 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Feb 23, 2004 #4 synapsevampire Programmer Mar 23, 2002 20,180 US I have a FAQ here that should help: faq767-3543 The only significant difference being that you'd want to divide the hours by 24 to get the days. -k Upvote 0 Downvote
I have a FAQ here that should help: faq767-3543 The only significant difference being that you'd want to divide the hours by 24 to get the days. -k