Skip to content

Commit dbed712

Browse files
committed
chore: apply suggestions from review
--- 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: passed - 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 2c660a2 commit dbed712

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ stdlib_base_modff( 4.0f, &integral, &frac );
146146
The function accepts the following arguments:
147147
148148
- **x**: `[in] float` input value.
149-
- **frac**: `[out] float*` destination for the integral part.
150-
- **exp**: `[out] float*` destination for the fractional part.
149+
- **integral**: `[out] float*` destination for the integral part.
150+
- **frac**: `[out] float*` destination for the fractional part.
151151
152152
```c
153153
void stdlib_base_modff( const float x, float *integral, float *frac );

lib/node_modules/@stdlib/math/base/special/modff/src/main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
* Decomposes a single-precision floating-point number into integral and fractional parts, each having the same type and sign as the input value, and assigns results to a provided output array.
3030
*
3131
* @param x input value
32-
* @param frac destination to store the normalized fraction
33-
* @param integral destination to store the exponent
32+
* @param integral destination pointer for the integral part
33+
* @param frac destination pointer for the fractional part
3434
*
3535
* @example
3636
* float x = 3.141592653589793f;
@@ -95,7 +95,6 @@ void stdlib_base_modff( const float x, float* integral, float* frac ) {
9595
word &= ( ~i );
9696

9797
// Generate the integral part:
98-
j = (float)i;
9998
stdlib_base_float32_from_word( word, &j );
10099
*integral = j;
101100
*frac = x - j;

0 commit comments

Comments
 (0)