Skip to content
Snippets Groups Projects
Closed Clarify semantics of fancy integer division functions
  • View options
  • Clarify semantics of fancy integer division functions

  • View options
  • Closed Issue created by Frederik Hennig

    The functions modulo_floor, modulo_ceil, div_floor and div_ceil of the integer_functions exhibit unclear rounding behaviour. Their names and docstrings indicate mathematical rounding behaviour ("down" is negative infinity), while their implementation performs zero-oriented rounding ("down" is toward zero), as this is the default behaviour of C / and %.

    We should clarify the semantics of these functions and adapt docstring, implementation, or both.

    See also the discussion here: !368 (merged)

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading