Vielleicht sollte ich anmerken, das die Prüfung auf Gleichheit == technisch (maschinenzahl wandlung) immer problematisch ist. Wenn man auf einen Wert "nahe Null" prüft etwa
f(x) = If(floor(x) ≤ x < floor(x) + 1 / 2, x - floor(x), abs(x - floor(x) - 1 / 2) ≤ 10⁻^5, 0, floor(x) + 1 / 2 < x < floor(x) + 1, x - floor(x) - 1)
dann erhält man einen Sägezahn, was ggf. einem technischen Hintergrund besser entsprechen könnte?
