TabletopAssistant / DiceKit

Swift framework for expressing and evaluating dice notation (e.g., d20, 4d6+4, 3d8×10+2), which is commonly used in tabletop role-playing games.
Apache License 2.0
14 stars 1 forks source link

Support floor/ceiling/round #109

Open brentleyjones opened 8 years ago

brentleyjones commented 8 years ago

This depends on #27 being implemented. If we have the possibility of fractions we need to support rounding of some sort.

Floor, or another one, might be the default, and only an explicit mention of one of these functions would make it behave a different way. This is because most of our math assumes integers and might have to stay that way.