fmod missing from math unit
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
There no floating point modulo in the math unit.
suggest to add it as operator as it is basically a one liner:
operator mod(const a,b:float) c:float;inline;
begin
c:= a-b * floor(a/b);
end;
Mantis conversion info:
- Mantis ID: 30744
- OS: all
- OS Build: all
- Platform: all
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 34968 (#18f25924)
- Target version: 3.2.0