[fpc-pascal] C# translatation

Sven Barth pascaldragon at googlemail.com
Sun Jan 8 14:42:25 CET 2017

On 08.01.2017 14:05, Ryan Joseph wrote:
>> On Jan 8, 2017, at 7:54 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
>> Ehm, right. Add the Math unit, it contains an operator overload for
>> floating points. Alternatively you can use (also from the Math unit) the
>> FMod() function.
> Hmmm, adding Math didn’t help and the FMod function is not found even. http://www.freepascal.org/docs-html/rtl/math/index-5.html doesn’t show this function exists either.

Ah, my bad. That's a recent addition in trunk (I tested with trunk).
However you can simply use the implementation from the commit for your
own code (see here:

> I thought (int)x was just type casting and didn’t actually transform the number. That’s confusing.

Well, it's the same in C++...


More information about the fpc-pascal mailing list