Expression for Whole numbers?

Discuss game development design and post your game ideas

Post » Mon Jul 25, 2016 3:26 am

I know there's a round(n) thing but I need something that will allow me to do this: exp(3.7) = 3 or exp(2.2) = 2. You get the idea.
Last edited by jnde016 on Mon Jul 25, 2016 4:50 am, edited 1 time in total.
B
9
S
2
Posts: 8
Reputation: 541

Post » Mon Jul 25, 2016 4:07 am

int() or floor()
ImageImageImage
B
71
S
22
G
248
Posts: 3,756
Reputation: 138,058

Post » Mon Jul 25, 2016 4:49 am

ty
B
9
S
2
Posts: 8
Reputation: 541

Post » Mon Aug 29, 2016 8:16 am

jnde016 wrote:I know there's a round(n) thing but I need something that will allow me to do this: exp(3.7) = 3 or exp(2.2) = 2. You get the idea.


can you plzz more clarify your problem topic.thnks in advance :)
B
2
Posts: 4
Reputation: 158

Post » Mon Aug 29, 2016 8:16 am

jnde016 wrote:I know there's a round(n) thing but I need something that will allow me to do this: exp(3.7) = 3 or exp(2.2) = 2. You get the idea.


can you plzz more clarify your problem topic.thnks in advance :)
B
2
Posts: 4
Reputation: 158


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests