longxx Posted June 4, 2008 Posted June 4, 2008 hi all, I have a GUI window shows certain time variable, but it is shown as 3434542.3425345 what is a good/short way to change this number to like 1 or 2 decimal places, and divide it by 1000? or even show it in XX mins XX seconds format? thanks
Airwolf Posted June 4, 2008 Posted June 4, 2008 hi all, I have a GUI window shows certain time variable, but it is shown as 3434542.3425345 what is a good/short way to change this number to like 1 or 2 decimal places, and divide it by 1000? or even show it in XX mins XX seconds format? thanksThis will round it to 2 decimal places and divide by 1000. $number = "3434542.3425345" $divided = (Round($number,2) / 1000)oÝ÷ Ù8b³ .Ø"½ì¨ºØ^rêëz{f{y©Ý±ç(Ö®¶sb4æ6ÇVFRfÇC´FFRæS2fwC° ¤×6t&÷ÂgV÷C²gV÷C²Å7G&æu&vBôæ÷uFÖRRÃR Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now