Wish Mod for float and double

stevel05

Expert
Licensed User
When trying to compile some code ported from a B4j app, I get a compile error using the Mod operator on floating point numbers.

I found this link which I think is is relevant: http://stackoverflow.com/questions/10351293/mod-operator-in-ios

Is it possible to either, amend the library to accommodate floats and doubles using the math.h fmod and fmodf depending on type, or add them as separate operators?

Error is:

Space = AppStatic.SongLayout.SpareSpace Mod 2
invalid operands to binary expression ('float' and 'float')

Thanks
 
Top