Logic Machine Forum
Fb editor division decimals. - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Fb editor division decimals. (/showthread.php?tid=2096)



Fb editor division decimals. - Tokatubs - 27.05.2019

Getting a value in mA that i wanted to convert to A. But the value returns without decimals. Any idea how to get the decimals showing. 

Code:
require('custom.fbeditor20.Math_basic')

functions_Math_basic_json_fbe_div_input_1 = event.getvalue()
functions_Math_basic_json_fbe_div_input_2 = 1000
out, err = fbe_div(functions_Math_basic_json_fbe_div_input_1, functions_Math_basic_json_fbe_div_input_2, 'fb__Str__mtrekk__fbe_div__id')
if out ~= nil then
    grp.write('14/1/4', out)
end
   


RE: Fb editor division decimals. - Daniel - 28.05.2019

Hi
Did you use floating object as an output?
BR