Skip to content

Commit 860ebb1

Browse files
committed
docs: fix C script for generating 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 7c2e6b4 commit 860ebb1

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/roundsd

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/math/base/special/roundsd/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,16 @@ double stdlib_base_roundsd( const double x, const int32_t n, const int32_t b );
149149
### Examples
150150
151151
```c
152-
#include "stdlib/math/base/special/roundsd..h"
152+
#include "stdlib/math/base/special/roundsd.h"
153153
#include <stdio.h>
154154
155155
int main( void ) {
156-
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
156+
const double x[] = { 3.143546, -3.142635, 0.0, 0.0/0.0 };
157157
158158
double y;
159159
int i;
160160
for ( i = 0; i < 4; i++ ) {
161-
y = stdlib_base_roundsd( x[ i ], -2, 10 );
161+
y = stdlib_base_roundsd( x[ i ], 2, 10 );
162162
printf( "roundsd(%lf) = %lf\n", x[ i ], y );
163163
}
164164
}

0 commit comments

Comments
 (0)