Raised This Month: $ Target: $400
 0% 

variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-20-2014 , 16:59   Re: variable
Reply With Quote #8

It depends. You can floor it, ceil it or round it. By default it's rounding, so that would be 2. Another option is to multiply it by, say 10, and then divide it by 10 on the other end. That way you don't lose information if you have to pass it through an array of some sort.
__________________

Last edited by Black Rose; 06-21-2014 at 16:39. Reason: Damn autocorrect
Black Rose is offline
 



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 21:07.


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