hello, i just give it a try. here's what i did.
remainder = price - Math.Truncate(price);
price = Math.Truncate(price) + (Math.Truncate(remainder / 0.25) * .25);
hope that helps. =)
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: Rounding or ModulusThreaded View
|
Click Here to Expand Forum to Full Width |