The 'atof' function changes a string value into an float value.
double atof(string value);
Parameters
string value : String that you want to change.
Return Value
Float
Example1
value = @atof("1234.5");
Description : The string value('1234.5') changes into the float value('1234'). And the float value('1234') is stored in the variable named 'value'.
Example2
$AITAG = @atof($string_tag);
Description : A string value stored in 'string_tag' is changed into an float value. And the float value is stored in the AI Tag named 'AITAG'.
Example3
@SetTagValue("string_tag","1234.5");
// The string value('1234.5') is stored in the String Tag named 'string_tag'.
$AITAG = @atof($string_tag);
// The string value('1234.5') stored 'string_tag' is changed into the float value('1234.5'). And the float value('1234.5') is stored in the AI Tag named 'AITAG'
$AOTAG=@atof($string_tag);
// The string value('1234.5') stored 'string_tag' is changed into the float value('1234.5'). And the float value('1234.5') is output to the AO Tag named 'AOTAG'