playMaker

Author Topic: Need double or long values  (Read 709 times)

andyandyandy

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 63
Need double or long values
« on: March 19, 2021, 02:12:50 AM »
Is there any format we can use for playmaker for numbers over 2billion? Is for war/troop game. Does playmaker have double or long? Or is there another way to do it? Need it for high exact numbers/calculations.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Need double or long values
« Reply #1 on: March 22, 2021, 03:48:59 PM »
Hi.
Maybe you can use a float and instead and you can have your value internal something like 123456,123456.
and if you have to display, remove the ,

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 773
Re: Need double or long values
« Reply #2 on: March 23, 2021, 10:08:46 AM »
I guess the hack will indeed be to slide the coma but that won't prevent the value from being rounded once the not-yet-decimals will be pushed down into the decimal zone, right? I remember that in some cases floats can be rounded so close to the coma that they're almost like integers.

FsmLong has a nice ring to it.