nnev / c128-kasse

Kassensoftware für den C128
Other
3 stars 3 forks source link

Rework format_euro() #13

Closed sur5r closed 6 years ago

sur5r commented 6 years ago

Should have been this way from the start. As of today, it's unclear whether there has been a real bug in the library back then of just a confusion between %02d and %0.2d.

An simple benchmark of 1000 iterations resulted in approximately 25% speedup at 1MHz and 12.5% speedup at 2MHz.