slider value change via script doesnt work

hello. i have slider for score bar and i am using that basic script for it. but it doesnt work properly. slider fills only when its full. it is not dynamic before full. i am using unity 4.6.5

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class sliderscript : MonoBehaviour {
	private Slider _slider;
	// Use this for initialization
	void Start () {
		_slider = GetComponentInChildren<Slider> ();
	// Update is called once per frame
	void Update () {
		_slider.value = scorescript.score1 / scorescript.finalscore * 100;

Maybe because you’re dividing an int by an int? I’m guessing your scores are integers. Try changing 100 to 100.0 to force floating point.

Also, make sure that value 100 even makes sense: a slider value should be between 0 and 1, and multiplying by 100 won’t insure that. Multiply by 1.0 instead?