Author Topic: Adding to getSimTime() returns truncated value?  (Read 417 times)

After the game's simtime has progressed long enough, it seems that adding or subtracting any sort of value to it returns a truncated string like 1.61372e+006 instead of the actual number. How can I get the actual number instead of that?

Either use (getSimTime() + value) | 0 or use $Sim::Time instead as you'll have 1000x the time to work with.

Doesn't mCeil get rid of the e+blah?

Doesn't mCeil get rid of the e+blah?
Not as far as I know... the best way to do it is definitely (value)|0

Yeah just use $Sim::Time instead unless you actually need MS