
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Round function with variable
Hi,
I am trying to create a round function with a variable but only receive error messages.
Idea is to write sth like: Round(Var A, 0.1,0). The varibale is defined in the variables section of the dashboard before.
When putting this in a chart/textbox,... I receive an error saying: Error in Expression: ')' expected
If I write the variable directly into my expression it works though.
for example: Var A = 1/2
Round(Var A, 0.1,0) -> the above mentioned error
Round(1/2,0.1,0) -> results in a value though
Can someone please help me what is going wrong here?
Thanks
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the problem:
Variable was created in Variable Overview, but it also included a line of commented code below the code actually in use.
Removing the part of the variable which was commented solved it.
now it works.
Thanks though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be use $ expansion over variable like
Round($(Var A), 0.1,0)
or
Round($(=Var A), 0.1,0)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have tried that already, but that did not help unfortunately
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where did you created this variables? Is that "Variable Overview" / "From Script" etc. May be provide screen shot for that

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the problem:
Variable was created in Variable Overview, but it also included a line of commented code below the code actually in use.
Removing the part of the variable which was commented solved it.
now it works.
Thanks though.
