Skip to content

Commit

Permalink
[DOC] Link Infinity and NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 6, 2023
1 parent 845c02f commit 489999b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -4552,13 +4552,13 @@ Init_bigdecimal(void)
/* Negative zero value. */
BIGDECIMAL_LITERAL(NEGATIVE_ZERO, -0);

/* Positive infinity value. */
/* Positive infinity[rdoc-ref:BigDecimal@Infinity] value. */
rb_define_const(rb_cBigDecimal, "INFINITY", BIGDECIMAL_LITERAL(POSITIVE_INFINITY, +Infinity));

/* Negative infinity value. */
BIGDECIMAL_LITERAL(NEGATIVE_INFINITY, -Infinity);

/* 'Not a Number' value. */
/* '{Not a Number}[rdoc-ref:BigDecimal@Not+a+Number]' value. */
rb_define_const(rb_cBigDecimal, "NAN", BIGDECIMAL_LITERAL(NAN, NaN));

/* instance methods */
Expand Down

0 comments on commit 489999b

Please sign in to comment.