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?
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#4
RE: How do I round floats up?

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.
(This post was last modified: 05-25-2012, 07:30 PM by Apjjm.)
05-25-2012, 07:29 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)