Display audio source volume as an int

Hello,

I am wondering how to convert the audio source volume from a float to an int. Because of using playerprefs I need the volume set as a float; converting this a string is fine. However, I would rather display my volume as 100, 90, 80 instead of 1.0, 0.9, 0.8 etc.

I am using this with a 3D text object as I find the GUI sliders awkward to work with (and I have no artistic talent to create a decent looking UI from GUI skins).

For the moment this is my code:

musicValue = _mainCam.GetComponent<Camera>().audio.volume;
_curMusicLevel.GetComponent<TextMesh>().text = musicValue.ToString("F1");

Any help would be appreciated,

Cheers.

musicValue = _mainCam.GetComponent().audio.volume;
musicValueInt = System.Convert.ToInt32(musicValue * 100);