The Daily Click ::. Forums ::. Klik Coding Help ::. Decimal values in TGF
 

Post Reply  Post Oekaki 
 

Posted By Message

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
10th November, 2007 at 05:10:39 -

Is there any extention or special method that allows The Games Factory to handle decimal values? I have a list object that contains prices and I want them to all automatically be added and displayed as a total (value or string). Is this possible?

 

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6944

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
10th November, 2007 at 05:13:18 -

Let me buy you MMF2.

 
www.hayovanreek.nl

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
10th November, 2007 at 06:17:40 -

I had problems getting decimals to display with MMF1.5 before.

I know they're different applications, but when I put a (decimal + zero) after my values everything displayed correctly.

Ex-> 6.0 instead of 6

Maybe you could try something like that? (I've never owned TGF before so if they don't have alt values in it please don't kill me).

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
10th November, 2007 at 06:45:10 -

It was kinda complicated with TGF. I believe counters couldn't handle nor display decimals, but Alberable Values could handle them.
Alternatively, if it's only prices you can calculate everything in cents and divide by hundred when displaying everything with a string.

There's also Advanced Math object, which is really buggy. There were ways to get around all the bugs in the expression editor, but I forgot. I'm not sure how Advanced Math worked with decimals either. I think it just calculated everything multiplied with 10^(extra decimals).

 
This space is for rent

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
10th November, 2007 at 19:14:40 -

Thanks guys. I think I'll just buy MMF.

 
   

Post Reply



 



Advertisement

Worth A Click