Some questions

Game Editor comments and discussion.

Some questions

Postby asmodeus » Wed Nov 28, 2007 4:30 pm

What does these things do? :
"(int)"
"(double)"
multiplication with "2.0f"
the function "floor(...)"
"unsigned char + [any variable]"
"(float)"
and "float [any variable]"
Last edited by asmodeus on Fri Apr 24, 2009 3:50 pm, edited 1 time in total.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Some questions

Postby Troodon » Thu Nov 29, 2007 8:32 pm

Can you be little more specific?

Int removes the decimals. For example 4,222 -> 4
Double is a number with decimals. For example: 3,141592654
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Some questions

Postby Bee-Ant » Fri Nov 30, 2007 11:14 am

Asmo...your new avatar looks Sammael in Sillent Hill :roll:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Some questions

Postby asmodeus » Fri Nov 30, 2007 1:42 pm

tekdino wrote:Can you be little more specific?

Int removes the decimals. For example 4,222 -> 4
Double is a number with decimals. For example: 3,141592654

When double is a number with decimals and I've got the number 1.246, I don't need to write (double)1.246. Is that true?
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Some questions

Postby asmodeus » Fri Nov 30, 2007 1:43 pm

Bee-Ant wrote:Asmo...your new avatar looks Sammael in Sillent Hill :roll:

I've got the avatar from the internet and edited it a little bit.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Some questions

Postby Troodon » Fri Nov 30, 2007 1:56 pm

asmodeus wrote:
tekdino wrote:Can you be little more specific?

Int removes the decimals. For example 4,222 -> 4
Double is a number with decimals. For example: 3,141592654

When double is a number with decimals and I've got the number 1.246, I don't need to write (double)1.246. Is that true?


Yeah, but if you want to convert to double, you must use it.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron