use set_value plugin with floating-point values
Does the set_value plugin support floating-point values? All the examples provided by PDI website use integer numbers. https://pdi.dev/master/set_value_plugin.html
For example, I want to set the integer value of my_switch
from an expression ${current_time} >= ${final_time}
where current/final_time
are floating-point numbers.
I got that the floating-point numbers are cast into integers before applying the >=
operation.
For example, if current_time=1.0
and final_time=1.5
, then my_switch=1
because [1.0]=1>=1=[1.5]
.
I also tried with ${current_time:f} >= ${final_time:f}
but got the same wrong result.