Scilab 5.3.0
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
nearfloat
get previous or next floating-point number
Calling Sequence
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
Authors
B.P.
<< isnan | Floating point | number_properties >> |