PDF version (NAG web site
, 64-bit version, 64-bit version)
NAG Toolbox: nag_machine_decimal_digits (x02be)
Purpose
nag_machine_decimal_digits (x02be) returns the maximum number of decimal digits which can be accurately represented over the whole range of floating-point numbers.
Syntax
[
result] = nag_machine_decimal_digits
Description
None.
References
None.
Parameters
Compulsory Input Parameters
None.
Optional Input Parameters
None.
Output Parameters
- 1:
– int64int32nag_int scalar
The result of the function.
Error Indicators and Warnings
None.
Accuracy
None.
Further Comments
None.
Example
See
Example in
nag_machine_precision (x02aj).
Open in the MATLAB editor:
x02be_example
function x02be_example
fprintf('x02be example results\n\n');
fprintf('precision in decimal digits = %20d\n', ...
x02be);
x02be example results
precision in decimal digits = 15
PDF version (NAG web site
, 64-bit version, 64-bit version)
© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2015