Integer division

Hi guys,
how can I implement the remainder between two integers in a root macro?
I tried with x%y but the error "Symbol % illegal operator for real numbers " appeared.


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Use “x%y” for integer values and “fmod(x, y)” or “remainder(x, y)” for floating-point values.

Hi,

Yes, finally I got it!

Thanks anyway

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.