Difference between rem2pi and mod2pi?

@pierre-haessig This is the same as the difference between the rem and mod functions (as specified by ieee). rem returns a result with the same sign as the divisor. mod is periodic. These definitions correspond when the divisor and dividend have the same sign.

1 Like