Skip to content

Commit

Permalink
Add docstring for 'RoundingMode'. Fixes #836.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed Jul 28, 2020
1 parent cf57a0f commit b9eb076
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 b9eb076

Please sign in to comment.