Skip to content

Commit 81f7b92

Browse files
committed
fix: remove toFixed for integer parameters in pmf 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: passed - 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent ac83f65 commit 81f7b92

File tree

2 files changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/pmf

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/pmf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ for ( i = 0; i < 25; i++ ) {
135135
x = randb( a, a+randa() );
136136
b = randb( a, a+randa() );
137137
y = pmf( x, a, b );
138-
console.log( 'x: %d, a: %d, b: %d, P(X=x;a,b): %d', x.toFixed( 4 ), a.toFixed( 4 ), b.toFixed( 4 ), y.toFixed( 4 ) );
138+
console.log( 'x: %d, a: %d, b: %d, P(X=x;a,b): %d', x, a, b, y.toFixed( 4 ) );
139139
}
140140
```
141141

lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/pmf/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ for ( i = 0; i < 25; i++ ) {
3434
x = randb( a, a+randa() );
3535
b = randb( a, a+randa() );
3636
y = pmf( x, a, b );
37-
console.log( 'x: %d, a: %d, b: %d, P(X=x;a,b): %d', x.toFixed( 4 ), a.toFixed( 4 ), b.toFixed( 4 ), y.toFixed( 4 ) );
37+
console.log( 'x: %d, a: %d, b: %d, P(X=x;a,b): %d', x, a, b, y.toFixed( 4 ) );
3838
}

0 commit comments

Comments
 (0)