lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.