From: Difei Zhao Date: 2008-09-12T17:11:01+09:00 Subject: float precision Hi all, Is there a direct method to get something like: var = sprintf("%.2f", 92.22312).to_f Thanks alot! Difei -- Posted via http://www.ruby-forum.com/.