The Daily Click ::. Forums ::. Klik Coding Help ::. Using decimal numbers in counters or global values in TGF?
 

Post Reply  Post Oekaki 
 

Posted By Message

davvve



Registered
  24/01/2005
Points
  7
27th January, 2005 at 02:28:33 -

Is there anyway to do this in TGF? My percent bar really get screwed up because of this. When I get the percent of the number out of its maximum number, it's usually in decimal form, which would then be rounded.. do numbers even get rounded up? Help me

Image Edited by the Author.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
27th January, 2005 at 03:05:12 -

I think the Maths pocket knife object can save decimals. Look at Clickteam's extension list.

 
Old member (~2004-2007).

Matt Mallas (Flying Apemonkey Software)



Registered
  20/08/2002
Points
  545
27th January, 2005 at 13:37:13 -

In the past when using percents in TGF, I simply saved the value as, say, 45 for 45%. If a number need to be multiplied by this percent, I simply multiplied it by this value and then divided the whole expression by 100. This way, the rounding doesn't take place until the expression has been evaluated. I'm not sure if this helps, as it may not work for all situations, but it has worked for me in the past.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click