Script Strings and Floats

SaxSax
edited 12:40PM in FreeReport
Hi,
first of all thx for distributing this software free ;) . I'm using it as an end user.

I've got a question regarding scripting: I get a variable called Rating which I want to use in a expression like this:
bla := [Rating] * 48
This works well if Rating is an integer (1, 2, 3, 4, 5) but if it is a float, for example 6.9, then very big values result from the above calculation. I think FreeReport's script engine interpretes the 6.9 as 69.
How can i solve this problem?

Thank you in advance!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.