On second thought, if you are actually trying to stuff a float into a 
String,
you would do this.

name = "Jack"
name[2] = 4.55.to_s
-- 
Posted via http://www.ruby-forum.com/.