Skip to content

Commit

Permalink
Merge pull request #842 from GaloisInc/issue836
Browse files Browse the repository at this point in the history
Add docstring for 'RoundingMode'. Fixes #836.
  • Loading branch information
brianhuffman authored Jul 28, 2020
2 parents cf57a0f + b9eb076 commit 1a2456a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Float.cry
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ type Float256 = Float 19 237
* Rounding modes (this should be an enumeration type, when we add these)
*---------------------------------------------------------------------- */

/**
* A 'RoundingMode' is used to specify the precise behavior of some
* floating point primitives.
*
* There are five valid 'RoundingMode' values:
* * roundNearestEven
* * roundNearestAway
* * roundPositive
* * roundNegative
* * roundZero
*/
type RoundingMode = [3]

/** Round toward nearest, ties go to even. */
Expand Down

0 comments on commit 1a2456a

Please sign in to comment.