Scilab 6.0.0
Scilab Help >> Elementary Functions > Floating point > nearfloat
nearfloat
get previous or next floating-point number
Syntax
xnear = nearfloat(dir, x)
Arguments
- dir
string ("succ" or "pred")
- x
real scalar, vector or matrix
- xnear
real scalar, vector or matrix
Description
This function computes, in the element wise meaning, the
corresponding neighbours of the elements of x
(in the
underlying floating point set, see number_properties), the successors if
dir = "succ"
and the predecessors if dir =
"pred".
Examples
See Also
- number_properties — determine floating-point parameters
- frexp — dissect floating-point numbers into base 2 exponent and mantissa
Comments
Add a comment:
Please login to comment this page.