Basis entryBasics.remainderBy
Tests (5)
- elm / StandardCoreEvaluationExamplesTestSmall programs for rules of the dynamic semantics of the Core that other tests reach only in passing, and examples from the Comments of A Standard Definition of Elm?, Chapter 6.
- elm-core / IntRemainderByTestChecks that `remainderBy` gives a result with the sign of the dividend, for all four sign combinations of divisor and dividend.
- elm-core / StandardA42RemainderByZeroTest`remainderBy 0 x` is `0`.
- elm-core / StandardA42ZeroDivisorTest`3 // 0`, `modBy 0 3` and `remainderBy 0 3` are all `0`: the examples A Standard Definition of Elm? gives for ruling A42 in its initial dynamic basis.
- elm-core / StandardA45IntNegativeZeroTestInt has one zero: no Int operation gives a negative zero.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.remainderBy] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.