[fpc-pascal] Freepascal Floating Point Issue

Michael Schnell mschnell at lumino.de
Fri Aug 25 10:00:10 CEST 2017


On 23.08.2017 14:11, Benito van der Zander wrote:
>> Btw, anyone know about a BCD math implementation for Free Pascal, like
>> it used to be implemented in DR CBASIC? (those were the days... ;-) )
Why do BCD math if you need a predefined number of correct digits after 
the "point"  and a "limited" count of digits before ?

Here you could do Int64 and consider a factor of 1/10^n. Would be a lot 
faster.

Seems like a candidate for type helper and overloading "*" and "div".

-Michael






More information about the fpc-pascal mailing list