Hi All I have a function to convert seconds to hours & minutes. Sending a value of 22500
Lparameters tValue *Converting seconds to Hours & Minutes Local lnHour,lnMin,lcDiff lnHour = INT(tValue/3600) lnMin = INT((tValue - (lnHour*3600))/60) lcDiff = Padl(lnHour,2,'0') + ":" + Padl(lnMin,2,'0') lnHour comes 9 (OK), lnMin comes 14 (Must be 15) lnHour = INT(tValue/3600) lnMin = (tValue - (lnHour*3600))/60 lnMin = INT(lnMin) Here in Step lnMin is 15.0000 In step 4 it becomes 14. Where am I going wrong. Ajoy Khaund Neamati Road Near Bhogdoi Bridge Jorhat 785 001 Assam, India Tel: 91-376-2351288 Cell: 91-94350-92287 Mail: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Walking on water and developing software from a specification are easy if both are frozen." - Edward V. Berard, "Life-Cycle Approaches" --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

