Salve a tutti...ho il seguente problema...
attraverso questo codice in c# mi calcolo quanto dovrebbe essere lunga una barra...un'idea sostanzialmente a quella dei sondaggi...quel voto ha quella percentuale...ed il codice sarebbe questo...

barraUno.Width = UnitConverter;
lblUno.Text = ((A[0] / tot) * 100) + "%";
barraDue.Width = ((A[1] / tot) * 100) + "%";
lblDue.Text = ((A[1] / tot) * 100) + "%";
barraTre.Width = ((A[2] / tot) * 100) + "%";
lblTre.Text = ((A[2] / tot) * 100) + "%";

il problema è che mi dice che non può convertire implicitamente una stringa in un system.qualcosa.unit...
Come posso fare per castare la mia stringa in questo system..Unit???