Lines Matching +full:zero +full:- +full:point

6   Copyright (C) 2002-2007 Michael J. Fromberger, All Rights Reserved.
44 static inline mp_int MP_NUMER_P(mp_rat Q) { return &(Q->num); } in MP_NUMER_P()
47 static inline mp_int MP_DENOM_P(mp_rat Q) { return &(Q->den); } in MP_DENOM_P()
57 /** Initializes `r` with 1-digit precision and sets it to zero. This function
61 /** Allocates a fresh zero-valued `mpq_t` on the heap, returning NULL in case
62 of error. The only possible error is out-of-memory. */
65 /** Reduces `r` in-place to lowest terms and canonical form.
67 Zero is represented as 0/1, one as 1/1, and signs are adjusted so that the
72 and `d_prec` digits of storage for the denominator, and value zero.
74 If either precision is zero, the default precision is used, rounded up to
78 /** Initializes `r` to be a copy of an already-initialized value in `old`. The
83 returns `MP_UNDEF` if `denom` is zero. */
87 `denom`. It returns `MP_UNDEF` if `denom` is zero. */
117 /** Sets `r` to zero. The allocated storage of `r` is not changed. */
127 It returns `MP_UNDEF` if `a` is zero. */
140 It returns `MP_UNDEF` if `b` is zero. */
153 It returns `MP_UNDEF` if `b` is zero. */
167 /** Returns the comparator of `r` and zero. */
171 It returns `MP_UNDEF` if `d` is zero. */
182 /** Converts `r` to a zero-terminated string of the format `"n/d"` with `n` and
188 /** Converts the value of `r` to a string in decimal-point notation with the
197 Truncates the value toward zero.
201 Rounds the value away from zero:
206 Rounds the value to nearest digit, half goes toward zero.
219 zero-terminated string in the given `radix`.
228 /** Sets `r` to the value represented by a zero-terminated string `str` in the
230 denominator has value zero. */
233 /** Sets `r` to the value represented by a zero-terminated string `str` in the
235 denominator has value zero. If `end` is not NULL then `*end` is set to
236 point to the first unconsumed character in the string, after parsing.
241 /** Sets `r` to the value represented by a zero-terminated string `str` having
245 n/d : ratio format, e.g., "-12/5"
248 It returns `MP_UNDEF` if the effective denominator is zero. If `end` is not
249 NULL then `*end` is set to point to the first unconsumed character in the
255 /** Sets `r` to the value represented by a zero-terminated string `str` in the
260 /** Sets `r` to the value represented by a zero-terminated string `str` in the
262 effective denominator. If `end` is not NULL then `*end` is set to point to