Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
unforgivn
Member
 
Join Date: Dec 2010
Posts: 62

Old January 2nd, 2011, 05:30 AM
A (hopefully) simple mathematical question from an XML noob: what function can I use to determine the absolute value of a number or to round down to the nearest integer? I need to generate a number that's a fraction of a character's class level, but I don't really want things like "2.2" showing up when obviously only whole numbers are valid.

Thanks in advance.
unforgivn is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 2nd, 2011, 09:31 AM
Here is a list of built in functions from the wiki. Don't see absolute value but the round function is their.

Hope that helps.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #2 Reply With Quote
unforgivn
Member
 
Join Date: Dec 2010
Posts: 62

Old January 2nd, 2011, 10:22 AM
Quote:
Originally Posted by ShadowChemosh View Post
Here is a list of built in functions from the wiki. Don't see absolute value but the round function is their.

Hope that helps.
Totally bookmarking that page.

Thanks.
unforgivn is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:18 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.