User law - "int" symbol
Posted: Fri Apr 28, 2023 1:53 pm
I was trying to use the "int" symbol as a floor function (as mentioned in the used guide).
I tried to use the function like, for example, "x=int(1.5)" to return "x=1" but I got the following message from the Expression Editor:
In function ‘cs_meg_boundary_function’: expected expression before ‘int’'
What is the mistake?
Is it maybe only usable as an "int" type definition like "int x = 1"? (but in the guide it is listed like a function)
Have you got any working example of the correct usage of "int" as a function?
Thank you in advance.
Lorenzo
I tried to use the function like, for example, "x=int(1.5)" to return "x=1" but I got the following message from the Expression Editor:
In function ‘cs_meg_boundary_function’: expected expression before ‘int’'
What is the mistake?
Is it maybe only usable as an "int" type definition like "int x = 1"? (but in the guide it is listed like a function)
Have you got any working example of the correct usage of "int" as a function?
Thank you in advance.
Lorenzo