Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function
determine floating-point parameters
pr = number_properties(prop)
real or boolean scalar
This function may be used to get the characteristic
numbers/properties of the floating point set denoted here by
F(b,p,emin,emax) (usually the 64 bits float numbers set
prescribe by IEEE 754). Numbers of
F are of the
sign * m * b^e
e is the exponent and
the digits are in
[emin, emax], the number is
said "normalized" if . The following may be
- prop = "radix"
pris the radix
bof the set
- prop = "digits"
pris the number of digits
- prop = "huge"
pris the max positive float of
- prop = "tiny"
pris the min positive normalized float of
- prop = "denorm"
pris a boolean (%t if denormalized numbers are used)
- prop = "tiniest"
then if denorm = %t,
pris the min positive denormalized number else
- prop = "eps"
pris the epsilon machine ( generally () which is the relative max error between a real
[tiny, huge]) and
fl(x), its floating point approximation in
- prop = "minexp"
- prop = "maxexp"
This function uses the lapack routine dlamch to get the machine parameters (the names (radix, digit, huge, etc...) are those recommended by the LIA 1 standard and are different from the corresponding lapack's ones).
CAUTION: sometimes you can see the following definition for the epsilon machine : but in this function we use the traditional one (see prop = "eps" before) and so if normal rounding occurs and if not.
b = number_properties("radix") eps = number_properties("eps")
|Report an issue|
|<< nextpow2||Floating point||round >>|