Decimal problems

Non-platform specific questions.

Decimal problems

Postby smillz » Sat May 17, 2008 5:42 am

Whenever I try to use a decimal (ex. 9.45) most the time the system ignores the decimal part (.45) and only recognizes and uses the whole number (9). It's not just for text actors, the same happens for an actor variable if it's an integer, but for some reason it doesn't always happen. Does anybody know a way to either fix or avoid that problem? or is it just me? :(
smillz
 
Posts: 21
Joined: Fri Jul 20, 2007 2:10 am
Score: 0 Give a positive score

Re: Decimal problems

Postby smillz » Sat May 17, 2008 5:58 am

oops, I meant that the decimal problem only occurs for actor variables, not text numbers, but I use text numbers to check an actor's variable.
smillz
 
Posts: 21
Joined: Fri Jul 20, 2007 2:10 am
Score: 0 Give a positive score

Re: Decimal problems

Postby makslane » Sat May 17, 2008 1:00 pm

Don't use integer variables if you need the decimal part.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Decimal problems

Postby DST » Sat May 17, 2008 5:29 pm

yes make the variable a 'real' instead.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron