Script Strings and Floats

SaxSax
edited 12:33PM 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