> I feel dirty: > > class Float; def to_s; sprintf("%0.16f", self); end; end You are dirty! ;-) >> el1['lat'] = node.latitude.to_s el1['lat'] = sprintf("%f", node.latitude) Ciao, Imi