Fixed Point
From Lazarus wiki
Jump to navigationJump to search
Free Pascal doesn't provide built-in language support for Fixed-point type. However there are a number of fixed point maths libraries available.
Due to the potential optimization of a certain operations (i.e. division or square root) the code might contain CPU specific inline assembly restricting the use of the library.
Library | CPU Restrictions | Notes |
---|---|---|
AFP | https://community.atmel.com/projects/afp-arbitrary-fixed-point-lib | |
FPMath v0.1 converted to Pascal | x86_64 only | https://forum.lazarus.freepascal.org/index.php?topic=15895.0 by Jameel halabi |