Raised This Month: $ Target: $400
 0% 

Calculating problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 04-03-2009 , 10:26   Re: Calculating problem
Reply With Quote #1

PHP Code:
    new integer 126856;
    
    new 
Float:decimal float( integer ) / 1000.0// convert it to seconds for the following calculations
    
    
new minutes floatrounddecimal 60floatround_floor );
    new 
seconds floatrounddecimal 60 minutesfloatround_floor );
    new 
milisec floatround( ( decimal - ( minutes 60 seconds ) ) * 1000.0floatround_floor );
    
    
//log_amx( "%i %02i:%02i:%03i", integer, minutes, seconds, milisec ); 
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode