Skip to content

Commit e05da8a

Browse files
committed
docs: add return annotations to README examples
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent ce8f6b8 commit e05da8a

File tree

1 file changed

+5
-0
lines changed
  • lib/node_modules/@stdlib/number/float64/base/ulp-difference

1 file changed

+5
-0
lines changed

lib/node_modules/@stdlib/number/float64/base/ulp-difference/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,23 @@ var ulpdiff = require( '@stdlib/number/float64/base/ulp-difference' );
9898

9999
var d = ulpdiff( 1.0, 1.0+EPS );
100100
console.log( d );
101+
// => 1.0
101102

102103
d = ulpdiff( 5.8364e-319, 5.8367e-319 );
103104
console.log( d );
105+
// => 6.0
104106

105107
d = ulpdiff( 0.0, SMALLEST_SUBNORMAL );
106108
console.log( d );
109+
// => 1.0
107110

108111
d = ulpdiff( 0.0, -0.0 );
109112
console.log( d );
113+
// => 0.0
110114

111115
d = ulpdiff( SMALLEST_SUBNORMAL, -SMALLEST_SUBNORMAL );
112116
console.log( d );
117+
// => 2.0
113118
```
114119

115120
</section>

0 commit comments

Comments
 (0)