Removing the tenths of seconds on a timer

//Variable for in-game timer
var myTimer : float = 30;

//Script for the in-game timer
function Update () {
    if(myTimer > 0){
        myTimer -= Time.deltaTime;
    }

    if(myTimer <= 0){
        Application.LoadLevel (2);          
    }
}

//Script to implament the in-game timer
function OnGUI(){
    GUI.Label(Rect(10,10,200,50), "Time:  " + myTimer);
}

I have set up a timer for my game, however I would like to remove the numbers after the decimal and display the time in whole seconds.

I just don't know how I would do that, any advice would be great.

Here's the most optimized way. See my answer.

http://answers.unity3d.com/questions/25979/timer-display-question/25984#25984

Use InvokeRepeating() and you will save method calls meaning faster performance for the same result.

Use Mathf.Floor(value) to get the next smaller integer number. Use Mathf.Ceil(value) to get the next bigger integer number.

just do this:

GUI.Label(Rect(10,10,200,50), "Time:  " + myTimer);

change to

GUI.Label(Rect(10,10,200,50), "Time:  " + (int)myTimer);

by parsing the value into an integer the timer automatically returns you whole numbers.