isNumber() in Maptool 1.8

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
iSax
Kobold
Posts: 6
Joined: Mon Dec 21, 2020 6:57 pm

isNumber() in Maptool 1.8

Post by iSax »

Hi

I'm using 1.8.0-beta.2, and I've noticed that the isNumber function is returning 0 for negative numbers. Strangely, -0 returns 1, but every actual negative number fails.

I went back and double checked version 1.7 and that version is correctly returning 1.

I assume this is because MapTool is now using a different Java version. It's worth knowing because it may cause unexpected behavior in existing frameworks, for example the robust eval function in the macro cookbook now throws an error if given a negative number.

User avatar
aliasmask
RPTools Team
Posts: 9031
Joined: Tue Nov 10, 2009 6:11 pm
Location: California

Re: isNumber() in Maptool 1.8

Post by aliasmask »

Yep, this is a known issue and has/will be fixed in next beta.

Post Reply

Return to “MapTool”