From 10174c09e62088c20dda7aaaf18882638c3af02b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 25 Mar 2024 07:03:59 +0000 Subject: [PATCH] Auto-generated commit --- base/tools/evalpoly-compile-c/lib/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/tools/evalpoly-compile-c/lib/main.js b/base/tools/evalpoly-compile-c/lib/main.js index 7f356980a..9ff806e46 100644 --- a/base/tools/evalpoly-compile-c/lib/main.js +++ b/base/tools/evalpoly-compile-c/lib/main.js @@ -120,8 +120,9 @@ function compile( c, options ) { // If more than one coefficient, apply Horner's method... horner = c[ 0 ].toString(); if ( isInteger( c[ 0 ] ) ) { - horner += '.0{{dtype_suffix}}'; + horner += '.0'; } + horner += '{{dtype_suffix}}'; for ( i = 1; i < n; i++ ) { horner += ' + (x * '; if ( i < m ) {