From: Eric B. <er...@go...> - 2008-01-07 13:43:08
|
Colin Adams wrote: > > > On 07/01/2008, *Eric Bezault* <er...@go... > <mailto:er...@go...>> wrote: > > > BTW, how come we need such big numbers to format dates? > > We don't. > But the code is shared by xsl:number (as the formatting rules are > defined to be the same), which might format any number. And is it that much code duplication to implement the formatting rules both for an INTEGER and for a MA_DECIMAL as input? It sounds to me as if because when written to a file an integer and a decimal look the same we should first convert INTEGERs to MA_DECIMALs when passing them to class FILE. Code duplication is one thing, but wasting execution time to convert entities in one way or another just for the sake of avoiding code duplication (and introducing library dependencies during that process) in another thing that is not necessarily better. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |