[Mono-dev] [PATCH] Math.Truncate

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Jun 20 08:10:30 EDT 2006

On Tue, 2006-06-20 at 13:45 +0200, Jb Evain wrote:
> Hello,
> This patch implements the new methods Math.Truncate.
> Is it ok?

Looks like, but in the past we had multiple surprise with the rounding
(including some changes between fx 1.0 and 1.1). So I guess you should
include unit tests for both methods. 

You can copy-n-edit existing test cases (e.g. for Round) as it should
cover most corner case we have encountered.


More information about the Mono-devel-list mailing list