Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I round floats up?
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#5
RE: How do I round floats up?

(05-25-2012, 07:29 PM)Apjjm Wrote: For future reference, you can always do ceil(X)=floor(x)+1 [if x != floor(x)]. Where floor(x) is simply casting to an integer.
Yeah, that's what you wrote in the code that YourComputer linked to. Smile

Noob scripting tutorial: From Noob to Pro

05-25-2012, 07:43 PM
Find


Messages In This Thread
How do I round floats up? - by Cranky Old Man - 05-25-2012, 05:21 PM
RE: How do I round floats up? - by Your Computer - 05-25-2012, 06:29 PM
RE: How do I round floats up? - by Cranky Old Man - 05-25-2012, 07:12 PM
RE: How do I round floats up? - by Apjjm - 05-25-2012, 07:29 PM
RE: How do I round floats up? - by Cranky Old Man - 05-25-2012, 07:43 PM



Users browsing this thread: 1 Guest(s)