-
How to use Javascript text decimal only retains the single digit?
I wrote a number addition,
As long as there are more than ten digits, the following single digits are reserved.
Y =
thisComp.layer(“QiuCards_ 4”).essentialProperty(“B_Dot_”)+
thisComp.layer(“QiuCards_ 4”).essentialProperty(“TopDot_”)+
thisComp.layer(“QiuCards_ 5”).essentialProperty(“B_Dot_”)+
thisComp.layer(“QiuCards_ 5”).essentialProperty(“TopDot_”)
if (Y > 10){
value = Y – 10;
}else if(Y < 10){
value = Y;
}
———————————-
When i number addition greater than 20.
it’s doesn’t work,
my text will be come decimal number.