The 'atoi' function changes a string value into an integer value.
int atoi(string value);
Parameters
string value : String that you want to change.
Return Value
Integer
Example1
value = @atoi("1234.5");
Description : The string value('1234.5') changes into the integer value('1234'). And the integer value('1234') is stored in the variable named 'value'.
Example2
$AITAG = @atoi($string_tag);
Description : A string value stored in 'string_tag' is changed into an integer value. And the integer 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 = @atoi($string_tag);
// The string value('1234.5') stored 'string_tag' is changed into the integer value('1234'). And the integer value('1234') is stored in the AI Tag named 'AITAG'
$AOTAG=@atoi($string_tag);
// The string value('1234.5') stored 'string_tag' is changed into the integer value('1234'). And the integer value('1234') is output to the AO Tag named 'AOTAG'