How do you round a float to 2 decimal places in JRuby? October 18, 2022 by Tarik (5.65235534).round(2) #=> 5.65