View Single Post
Old 13.07.2007, 15:23   #16
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

It is type of rounding which is supported since .NET 2.0 - MidpointRounding::AwayFromZero - it works as rounding up from .5 (fraction of number):
if ( fraction ( number ) >= 0.5 ) { round_up ( number ); } else { truncate ( number ); }
Kenjiro is offline