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.
isNumber() in Maptool 1.8
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.
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.
Re: isNumber() in Maptool 1.8
Yep, this is a known issue and has/will be fixed in next beta.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools