Visual Designer.. arranging multiple buttons.. not arranging in the correct position??

I use two Layouts to do..one for display. one for button function

I use script to calculate all button positions..for example 20%y,40%y,60%y,80%y

I noticed that the button position is not as I thought..

i think. it might be in decimal point

100%y=977

977*0.40=390.8

977*0.60=586.2

977*0.80=781.6

attach my source code

I use two Layouts to do..one for display. one for button function

I use script to calculate all button positions..for example 20%y,40%y,60%y,80%y

I noticed that the button position is not as I thought..

i think. it might be in decimal point

100%y=977

977*0.40=390.8

977*0.60=586.2

977*0.80=781.6

attach my source code

Visual Designer Script:

```
'Variant specific script: 320x480,scale=1
'c 2 3 4
btn1.SetTopAndBottom(0,20%y)
btn2.SetTopAndBottom(0,20%y)
btn3.SetTopAndBottom(0,20%y)
btn4.SetTopAndBottom(0,20%y)
btn1.SetLeftAndRight(0%x,25%x)
btn2.SetLeftAndRight(25%x,50%x)
btn3.SetLeftAndRight(50%x,75%x)
btn4.SetLeftAndRight(75%x,100%x)
'7 8 9
num7.SetTopAndBottom(20%y ,40%y)
num8.SetTopAndBottom(20%y ,40%y)
num9.SetTopAndBottom(20%y ,40%y)
btn5.SetTopAndBottom(20%y ,40%y)
num7.SetLeftAndRight(0%x,25%x)
num8.SetLeftAndRight(25%x,50%x)
num9.SetLeftAndRight(50%x,75%x)
btn5.SetLeftAndRight(75%x,100%x)
'4 5 6
num4.SetTopAndBottom(40%y,60%y)
num5.SetTopAndBottom(40%y,60%y)
num6.SetTopAndBottom(40%y,60%y)
btn6.SetTopAndBottom(40%y,60%y)
num4.SetLeftAndRight(0%x,25%x)
num5.SetLeftAndRight(25%x,50%x)
num6.SetLeftAndRight(50%x,75%x)
btn6.SetLeftAndRight(75%x,100%x)
'1 2 3
num1.SetTopAndBottom(60%y,80%y)
num2.SetTopAndBottom(60%y,80%y)
num3.SetTopAndBottom(60%y,80%y)
btn7.SetTopAndBottom(60%y,100%y)
num1.SetLeftAndRight(0%x,25%x)
num2.SetLeftAndRight(25%x,50%x)
num3.SetLeftAndRight(50%x,75%x)
btn7.SetLeftAndRight(75%x,100%x)
'0 & .
num0.SetTopAndBottom(80%y,100%y)
num10.SetTopAndBottom(80%y,100%y)
num0.SetLeftAndRight(0%x,50%x)
num10.SetLeftAndRight(50%x,75%x)
'btn7.SetTopAndBottom(75%x,100%x)
```