Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: johnpelzHi �zg�n,
The current mod() function doesn't support double values - it only works with integers / long value types in BRAINScript. See below for the value type definitions in BRAINScript (also in BRAINScript help under "General Language Sections" -> "Value Types"
int : Signed integer. Valid range of values is from -2^31 to 2^31 - 1.
long : 64-bit signed integer. Valid range of values is from -2^63 to 2^63 - 1.
I have filed an enhancement request with our engineers to add a fmod() function (c++ equivalent) but I cannot make any promises on when this will make it into the product.
I would suggest looking into using the Python or Java nodes, assuming they have a function available.
Hope that helps.