mpfr_libmpfr_set_emax Method |
Set the largest exponent allowed for a floating-point variable.
Namespace:
Math.Mpfr.Native
Assembly:
Math.Mpfr.Native (in Math.Mpfr.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static int mpfr_set_emax(
mpfr_exp_t exp
)
Public Shared Function mpfr_set_emax (
exp As mpfr_exp_t
) As Integer
public:
static int mpfr_set_emax(
mpfr_exp_t exp
)
static member mpfr_set_emax :
exp : mpfr_exp_t -> int
Parameters
- exp
- Type: Math.Mpfr.Nativempfr_exp_t
The exponent.
Return Value
Type:
Int32Return a non-zero value when
exp is not in the range accepted by the implementation (in that case the largest exponent is not changed), and zero otherwise.
Remarks
If the user changes the exponent range, it is her/his responsibility to check that all current floating-point variables
are in the new allowed range (for example using mpfr_check_range), otherwise the subsequent behavior will
be undefined, in the sense of the ISO C standard.
Examples
mpfr_lib.mpfr_set_emax(1000);
Assert.IsTrue(mpfr_lib.mpfr_get_emax() == 1000);
mpfr_lib.mpfr_set_emax(1000)
Assert.IsTrue(mpfr_lib.mpfr_get_emax() = 1000)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also