OK, then how do I add two numbers using the numbertool? Here's what I have:
$numbertool.toNumber($tRule.indexOf('.'))
This displays a number as a string just fine. Now, I need to add 1 to it.
I've tried:
$numbertool.toNumber($tRule.indexOf('.')).intValue()+1 ## displays 1+1
$numbertool.toNumber($tRule.indexOf('.')+1) ## crashes
$numbertool.format($numbertool.toNumber($tRule.indexOf('.')).intValue()+1)
## crashes
$numbertool.toNumber($numbertool.toNumber($tRule.indexOf('.'))+1) ## crashes
I know this is a scripting language and all but it doesn't seem that
something this simple should be so hard to do. Does velocity not have the
concept of a number?!?
Thanks!
.:. Kevin
--
View this message in context:
http://n2.nabble.com/Strangeness-with-numbers...-tp2168613p2186603.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.