From 9afd6f3091b43bce656edf6b956ff3a83e8153d5 Mon Sep 17 00:00:00 2001 From: Dan Debrunner Date: Fri, 23 Jun 2017 15:11:44 -0700 Subject: [PATCH] Fix #1112 Convert float32,foat64 argument to float. not int. --- .../opt/python/packages/streamsx/spl/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com.ibm.streamsx.topology/opt/python/packages/streamsx/spl/types.py b/com.ibm.streamsx.topology/opt/python/packages/streamsx/spl/types.py index 8b9e4f41ca..685fe64f44 100644 --- a/com.ibm.streamsx.topology/opt/python/packages/streamsx/spl/types.py +++ b/com.ibm.streamsx.topology/opt/python/packages/streamsx/spl/types.py @@ -170,13 +170,13 @@ def float32(value): """ Create an SPL ``float32`` value. """ - return Expression('FLOAT32', int(value)) + return Expression('FLOAT32', float(value)) def float64(value): """ Create an SPL ``float64`` value. """ - return Expression('FLOAT64', int(value)) + return Expression('FLOAT64', float(value)) def rstring(value): """