• dream_weasel
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    13 hours ago

    Minor simplification: this works even without taking absolute value first of you use fix instead of floor.

    Edit: I don’t know if fix is in the stock math library on second thought…