Skip to content

Commit 195010e

Browse files
committed
send float value directly without conversion to string
1 parent 151182b commit 195010e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn convert_params_to_json(params: &HashMap<i32, Value>) -> Vec<serde_json::V
9595

9696
Value::Real(f) => serde_json::json!({
9797
"type": "float",
98-
"value": *f.to_string()
98+
"value": f
9999
}),
100100
Value::Text(s) => serde_json::json!({
101101
"type": "text",

0 commit comments

Comments
 (0)