Default0 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Default0

return the default value of zero

DefaultOverflow

return the default overflow value

DefaultUnderflow

return the default underflow value

 Calling Sequence Default0() DefaultOverflow(s) DefaultUnderflow(s)

Parameters

 s - either 1 or -1

Description

 • The Default0() function returns +0.0 unless the rounding mode is -infinity, in which case it returns -0.0.
 • The DefaultOverflow() function returns the system's current default overflow value. The default overflow value is always s * Float(infinity).
 • The DefaultUnderflow() function returns the system's current default underflow value. The default underflow value is always $0.$.
 • The returned values are all software floating-point format. To determine the appropriate hardware floating-point values, enclose the function call in the HFloat constructor.

 • The Default0, DefaultOverflow and DefaultUnderflow commands are thread-safe as of Maple 15.

Examples

 > $\mathrm{Default0}\left(\right)$
 ${0.}$ (1)
 > $\mathrm{DefaultUnderflow}\left(1\right)$
 ${0.}$ (2)
 > $\mathrm{DefaultUnderflow}\left(-1\right)$
 ${-0.}$ (3)
 > $\mathrm{DefaultOverflow}\left(1\right)$
 ${Float}{}\left({\mathrm{\infty }}\right)$ (4)
 > $\mathrm{HFloat}\left(\mathrm{DefaultUnderflow}\left(-1\right)\right)$
 ${-0.}$ (5)