From: Trick Nick Date: 2008-10-23T09:53:24+09:00 Subject: i need to represent data as percentages basically i go through a document count up the total number of times the status codes appeared. eg 200 = 96 201 =8 300 = 12 etc etc. I have counted up the total number of codes in the whole file and now must divide by each source codes value or individual count so it would be something like 108.to_f / 92.to_f but i get these numbers such as 0.86899 yadayadayada. How do i convert that float number now to a representable percent such as 87%? -- Posted via http://www.ruby-forum.com/.