Do you mean to the "nearest" .5 or to the "next" .5? For example, if you have 123.6, does that mean you want 123.5 or 124.0?
The above is more for curiosity than anything.
My recommendation would be that you don't use rules, but instead use code. I'm sure if there's a good mathematician here, they could give you some kind of a formula to do this, but it seems to me that writing code is just as easy. Then you have fine-grain control over such neuances as I mentioned above.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
Well, i see the "round" function, but I need it to go by the nearst .5
Also, I did not see a mod function.
Is this still possible?
Alex said:
You can use rules to achieve this goal. Play with the "floor", "ceiling" and
"mod" XPath functions, they should help.