0 Kudos

Number.Mod Bug

Status: Accepted
by Super User on ‎09-09-2017 07:47 AM

Number.Mod doesn't return that same than it's corrsponding functions in Excel and DAX when negative numbers are involved. I find this really bad.

Please change.


Current workaround:

(number, divisor) => if number>0 then number-Number.RoundDown(number/divisor,0) else Number.Abs(divisor)+number
Status: Accepted
Idea Statuses