Cast variable type?

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
RevenantBob
Cave Troll
Posts: 35
Joined: Sat May 19, 2012 3:41 pm

Cast variable type?

Post by RevenantBob »

Is there a way to convert a BigInt into a float in scripts?

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: Cast variable type?

Post by Phergus »

Multiply it by 1.0.

Code: Select all

[h: mybigint = 100]
[h: mybigfloat = mybigint * 1.0]
[r: mybigfloat]

Post Reply

Return to “MapTool”