Click here to Skip to main content
15,891,529 members
Articles / Mobile Apps / Windows Mobile

MidpointRounding.AwayFromZero functionality in .Net Compact Framework

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
14 May 2010CPOL 23K   1  
The Math.Round function in the Compact Framework only allows for ToEven behavior, not the AwayFromZero functionality as listed here:http://msdn.microsoft.com/en-us/library/system.midpointrounding.aspx[^]This code will allow you to emulate the MidpointRounding.AwayFromZero functionality of...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions