Raised This Month: $ Target: $400
 0% 

Functions (round,ceil,floor) IDK


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Irena
BANNED
Join Date: Jul 2012
Old 07-13-2012 , 06:03   Re: Functions (round,ceil,floor) IDK
Reply With Quote #1

yeah round will round the value after point like it would do 5.4 to 5 and 5.6 to 6.CEIL function will give the Highest value of the given number where as FLOOR function will give the lowest value to the given Number. ceil will round 23.4 to 24 and floor will gave 23 even if its 23.8
Irena is offline
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 07-20-2013 , 09:26   Re: Functions (round,ceil,floor) IDK
Reply With Quote #2

But why this give me a tag mismatch error?

PHP Code:
ePlayer        =    floatround((num num2)/2floatround_ceil); 
If I provide a float, it gives me no error but gives error with variables >.<

Last edited by devWaleed; 07-20-2013 at 09:26.
devWaleed is offline
Send a message via Skype™ to devWaleed
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-20-2013 , 19:14   Re: Functions (round,ceil,floor) IDK
Reply With Quote #3

Quote:
Originally Posted by devWaleed View Post
But why this give me a tag mismatch error?

PHP Code:
ePlayer        =    floatround((num num2)/2floatround_ceil); 
If I provide a float, it gives me no error but gives error with variables >.<
Show the whole code. num and num2 must be floating point variables and 2 should be 2.0
__________________
fysiks is offline
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 09:19.


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