Ruby float methods Posted Aug 24, 2025 Updated Aug 25, 2025 By Victor Elgersma 1 min read Ruby float methods Contents Ruby float methods Rounding with .round: 1 2 3 my_float = 3.1415926 my_float.round(2) => # 3.14 ruby This post is licensed under CC BY 4.0 by the author. Share