Excel MROUND(num, multiple)

  • Thread starter Thread starter mazdotnet
  • Start date Start date
M

mazdotnet

Hi,

In excel there is a function
MROUND(num, multiple) - The num argument is the number you want to
round, while multiple is the value you want used in the rounding.

Is there a function in C# to do this?

Thanks
Maz.
 
No, there is no direct equivalent. You can, however, use interop to call the
mround function from excel. Bare in mind that there is a lot of overhead
involved.

--
Warm Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley 2006
Blog: http://msmvps.com/blogs/Alvin/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Round Function 5
Round formula 1
Not understanding MROUND 1
MROUND 3
rounding to multiples in excel ? 3
Access Function like Excel Mround function? 3
Round Down to the nearest multiple 2
Rounding 5

Back
Top