[Mono-devel-list] formatting floating point values

Miguel de Icaza miguel at ximian.com
Tue Mar 4 15:26:02 EST 2003


> My other comment concerns code duplication in DoubleFormatter.cs and
> SingleFormatter.cs: I don't think there is any need to have two versions
> of the same code when the only difference is basically just the default
> precision. Can't we simple use the DoubleFormatter.cs code with one
> or two additional parameters?

We have quite a bit of code duplication as well on the integer parsing
code, but that was because otherwise you end up using the 8-byte long
operations in loops instead of the cheaper 4-byte longs.


More information about the Mono-devel-list mailing list