Lines Matching refs:is
37 …verloaded for example to return a fraction. The modulo operator (@code{%}) is defined as the Eucli…
38 remainder. @code{^} is an alias to the power operator
39 (@code{**}). @code{^^} is used as the exclusive or operator.
48 Operator overloading is inspired from the proposal available at
58 @item @code{with operators from} is not supported. Operator overloading is always enabled.
60 …is not based on a static @code{[[OperatorSet]]} field in all instances. Instead, a dynamic lookup …
62 …de{Operators.create(...dictionaries)} is used to create a new OperatorSet object. The @code{Operat…
96 Return an array of two elements. The first element is the quotient,
97 the second is the remainder. The same rounding is done as the
101 Return @math{\lfloor \sqrt(a) \rfloor}. A RangeError exception is
105 Return an array of two elements. The first element is @math{\lfloor
106 \sqrt{a} \rfloor}. The second element is @math{a-\lfloor \sqrt{a}
107 \rfloor^2}. A RangeError exception is raised if @math{a < 0}.
124 point number is represented as a sign, mantissa and exponent. The
136 If no floating point environment is provided, the global floating
137 point environment is used.
139 The rounding mode of the global floating point environment is always
141 rationale is that the rounding mode changes must always be
143 read@footnote{The rationale is to avoid side effects for the built-in
144 operators.}. The precision of the global environment is
146 environment is @code{BigFloatEnv.expBits}. The global environment
147 subnormal flag is set to @code{true}.
151 default precision is @code{prec = 113} and @code{ expBits = 15} (IEEE
161 The builtin operators are extended so that a BigFloat is returned if
162 at least one operand is a BigFloat. The computations are always done
173 0.0l} is false).
182 ensure that the literal is represented accurately with the current
190 invoked as a function: the parameter is converted to a primitive
191 type. If the result is a numeric type, it is converted to BigFloat
192 without rounding. If the result is a string, it is converted to
213 point environment @code{e} or the global environment if @code{e} is
218 @code{radix}. The radix is 0 (default) or from 2 to 36. The radix 0
219 means radix 10 unless there is a hexadecimal or binary prefix. The
220 result is rounded according to the floating point environment @code{e}
221 or the global environment if @code{e} is undefined.
224 Return true if @code{a} is a finite bigfloat.
227 Return true if @code{a} is a NaN bigfloat.
235 @code{e} or the global environment if @code{e} is undefined. If
236 @code{e} is specified, the floating point status flags are updated.
242 Round to an integer. No additional rounding is performed.
245 Return the absolute value of x. No additional rounding is performed.
249 Floating point remainder. The quotient is truncated to zero (fmod) or
250 to the nearest integer with ties to even (remainder). @code{e} is an
254 Square root. Return a rounded floating point number. @code{e} is an
268 number. @code{e} is an optional floating point environment.
286 If the radix is a power of two, the conversion is done with infinite
289 Otherwise, the number is rounded to nearest with ties to even using
290 the global precision. It is then converted to string using the minimum
296 The exponent letter is @code{e} for base 10, @code{p} for bases 2, 8,
303 BigFloats. There is no limit on the accepted precision @code{p}. The
329 environment. The status flags are reset. If no parameter is given the
331 global floating point environment. Otherwise, the precision is set to
332 @code{p}, the number of exponent bits is set to @code{expBitsMax} and the
333 subnormal flags is set to @code{false}. If @code{rndMode} is
334 @code{undefined}, the rounding mode is set to @code{RNDN}.
342 environment. The initial value is @code{113}.
346 environment assuming an IEEE 754 representation. The initial value is
353 their precious value and the return value of @code{f} is returned (or
354 an exception is raised if @code{f} raised an exception). If @code{e}
355 is @code{undefined} it is set to @code{BigFloatEnv.expBitsMax}.
389 …tnote{Could be removed in case a deterministic behavior for floating point operations is required.}
390 Read-only integer. Faithful rounding mode. The result is
412 Getter and setter (Boolean). subnormal flag. It is false when
431 10. It is inspired from the proposal available at
435 finite. There is no concept of @code{-0}, @code{Infinity} or
448 Both operands must be BigDecimal. The result is computed with infinite
451 Both operands must be BigDecimal. The result is computed with infinite
452 precision. A range error is throws in case of division by zero.
455 Both operands must be BigDecimal. A range error is throws in case of
461 integer. The result is computed with infinite precision.
464 When one of the operand is a BigDecimal, return true if both operands
474 Numerical comparison. When one of the operand is not a BigDecimal, it is
490 It returns @code{0m} if no parameter is provided. Otherwise the first
491 parameter is converted to a bigdecimal by using ToString(). Hence
508 rounding object is not present, the operation is executed with
511 For @code{div}, a @code{RangeError} exception is thrown in case of
513 precision if no rounding object is present.
515 For @code{sqrt}, a range error is thrown if @code{a} is less than
519 @code{roundingMode} is a string specifying the rounding mode
542 precision @code{p}. There is no limit on the accepted precision
555 A new @emph{math mode} is enabled with the @code{"use math"}
556 directive. It propagates the same way as the @emph{strict mode}. It is
567 …int or an exponent) are @code{BigFloat} by default (i.e. a @code{l} suffix is implied). Hence @cod…
569 …not be represented as a safe integer. A safe integer is defined as a integer whose absolute value …
571 …n operators and functions are modified so that their result is returned as a Number if it is a saf…
573 …perands between Number and BigInt are accepted provided the Number operand is a safe integer. The …
575 @item The @code{^} operator is an alias to the power operator (@code{**}).
577 @item The power operator (both @code{^} and @code{**}) grammar is modified so that @code{-2^2} is a…
579 @item The logical xor operator is still available with the @code{^^} operator.