# execute_calculator_code The **execute\_calculator\_code** function evaluates a coded calculator string.   ##### Syntax ``` wasm BOOL execute_calculator_code( PCSTRINGZ code, FLOAT64* fvalue, SINT32* ivalue, PCSTRINGZ* svalue ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|---------------------------------------------------------------------------------------------| | `code` | Specifies the calculator code. | | `fvalue` | Pointer to a float. Returns the result of the calculation, if it is a floating point value. | | `ivalue` | Pointer to an integer. Returns the result of the calculation, if it is an integer value. | | `svalue` | Pointer to a string. Returns the result of the calculation, if it is a string. | {{< /table-wrapper >}}   ##### Return Values If the function succeeds, it returns a non-zero value. If it fails, it returns zero.   ##### Example ``` wasm FLOAT64 att_pitch = 0; FLOAT64 att_bank = 0; execute_calculator_code ("(A:ATTITUDE INDICATOR PITCH DEGREES:2, degrees)", &att_pitch, NULL, NULL); execute_calculator_code ("(A:ATTITUDE INDICATOR BANK DEGREES:2, degrees)", &att_bank, NULL, NULL); ```   ##### Remarks It is worth noting that, unlike when creating XML gauges, calculator symbols should be written *correctly* and not using codes. For example, the following XML: ``` wasm (>K:TOGGLE_ICS) ``` would be written as: ``` wasm (>K:TOGGLE_ICS) ``` So, things like `>`, `<`, `&`, etc... should always be written as `<`, `>`, and `&`, etc...