Well, I have this number, and I want to get a percentage of it, so I do value("number") * value("percent") / 100
But it seems like TGF only likes whole numbers.
So is there any way to "smooth the edges" of the number, and if I got let's say 3.41, it'll be set in the counter as a 3?
I have a number, and I want to get a percentage of it. Like if it was 10 then 50% of it would be 5.
So if I have 3 counters - one is the number (10), one is the percentage (50) and one is the future result (5) - what I did was that the future result counter equals original_number * percent / 100
Basic math, right?
But that was a simple case, say I have a number 2093 and I want 39% of it, I will get a number that's not whole, 816.27.
The counter doesn't seem to like such numbers, so how do I make it accept the result as 816?
As far as I know, MMF will truncate numbers automatically. I think the problem lies in the formula you're using - division is done before multiplication, so (value("percent") / 100) is always truncated to 0 before you multiply it.
Use extra brackets: "(value("number") * value("percent")) / 100" - multiplying up first should solve it.