Nth Root

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
BaseDeltaZero
Kobold
Posts: 1
Joined: Thu Aug 07, 2014 9:32 pm

Nth Root

Post by BaseDeltaZero »

Is there any way to perform an Nth Root function in MapTools? Any reasonable workarounds if not?

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Nth Root

Post by aliasmask »

BaseDeltaZero wrote:Is there any way to perform an Nth Root function in MapTools? Any reasonable workarounds if not?
Yes, you can use the power of 1 over N:

Code: Select all

[math.pow(27,1/3)]

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Nth Root

Post by JamzTheMan »

@Wolph42, is the wiki updated with all the Math. functions? IIRC Craig added some math functions in 1.4.0.x? (or where they just updates?)


Looks like some are missing? Quick copy from java:

"math.abs", "math.ceil", "math.floor", "math.cos", "math.cos_r", "math.sin", "math.sin_r", "math.tan", "math.tan_r", "math.acos", "math.acos_r", "math.asin", "math.asin_r", "math.atan", "math.atan_r", "math.atan2", "math.atan2_r", "math.cbrt", "math.cuberoot", "math.hypot", "math.hypotenuse", "math.log", "math.log10", "math.min", "math.max", "math.mod", "math.pow", "math.sqrt", "math.squareroot", "math.toRadians", "math.toDegrees", "math.pi", "math.e", "math.isOdd", "math.isEven", "math.isInt"
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

Post Reply

Return to “MapTool”