We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5564766 commit 378c108Copy full SHA for 378c108
lib/node_modules/@stdlib/math/base/tools/evalpoly-compile-c/lib/main.js
@@ -120,8 +120,9 @@ function compile( c, options ) {
120
// If more than one coefficient, apply Horner's method...
121
horner = c[ 0 ].toString();
122
if ( isInteger( c[ 0 ] ) ) {
123
- horner += '.0{{dtype_suffix}}';
+ horner += '.0';
124
}
125
+ horner += '{{dtype_suffix}}';
126
for ( i = 1; i < n; i++ ) {
127
horner += ' + (x * ';
128
if ( i < m ) {
0 commit comments