x = 1.0155555555555555puts (x * 1000).floor / 1000.0
Standard input is empty
1.015
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!