"I am encountering an issue where a custom function returns an incorrect data type when triggered by a specific signal condition. Any insights or guidance on identifying and resolving this problem would be greatly appreciated. Thank you in advance for your assistance
it should return double, but it returns string