TextSubStr .. and 2 attributes
Locoyo
Member Posts: 6
Hey guys...
another question and hopefully another quick perfect answer
i have 2 attributes and wanna display them as text...
when i use it without TextSubStr like attribute game.a is 7 and attribute game.b is 3
attribute.a/attribute.b
I can display it and the output would be 2,333333333
i wanna limit it to 5 digits
so my idea is
textSubStr(attribute.a/attribute.b,0,5)
i also tried
textSubStr((attribute.a/attribute.b),0,5)
but I get invalid expression... is it correct that I can not make any calculation inside the textsubstr ?
any other ideas how to limit it?
thanks and merry xmas
Comments
Umm...not sure textSubStr takes number inputs. What are you trying to achieve with that expression?
How about just using a Display Text, with:
prec(attribute.a/attribute.b,5)
That will give you 5 digits past the decimal point.
there are so many actions I don't know.. thanks it works fine
I just have a simple number / number calculation and depending on the input there comes kind of 0.33333333333 and I just wanted to limit it..
with price(x,y) it works...
thaaaaaank you