Integrated Application Platform › Forums › General › RoundUp problems › Re: Re: RoundUp problems
3) I am not sure if I understand this question. Inside Numbers methods, ‘this’ will be the original number.
Yes, it should be.
I typed Print((this * factor).Ceiling())inside the RoundUp() method and ran -9.0123456.RoundUp(4) from WorkSpace. The Print statement printed out 90124 and the RoundUp method gave -9.0124.
Then I tried putting Print(this) in place of the first Print((this * factor).Ceiling()). Again, I ran -9.0123456.RoundUp(4) from WorkSpace . Now, the Print statement printed out 9.0123456 followed by the RoundUp method’s result -9.0124.
So, i thought that “this” somehow was ignoring the negative sign of the original number. I thought it was an error. Now, I know that it is solved if the number is placed inside parenthesis along with its sign.
Thanks for the explanations
ajith