Float
Block “float” is used to define constant of float type.
Float values can be used in comparisons in logic operations.
In case float value is stored in database it is not directly stored under specified key name which always stores string representation, but special key name is created with value representation. Such key name is created as original_key@float. Therefore for accessing float value retrieved from database float key name has to be used.
XML representation of math_float block:
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="math_float">
<field name="NUM">1.1</field>
</block>
</xml>
{
"my_value": "1.1",
"my_value@float": {
"value": 1.1
}
}