[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Possible improvements to the LNUM patch?
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Mon, 14 Apr 2008 15:17:27 -0400
Javier Guerra wrote:
> On Mon, Apr 14, 2008 at 1:40 PM, Jerome Vuarand
> <jerome.vuarand@ubisoft.com> wrote:
>> For the number format, I'd recommend a fixed point BCD format. The
>> fixed point
>
> OT: is there any advantage on using BCD instead of just storing the
> number of cents as an integer?
Only marginally I think. I/O as a text could be faster. Actually using a
normal integer type is probably a better solution, I don't know why I
recommended BCD.