ruby 2 decimal

# Step 1: Define a function named 'round_to_two_decimals' that takes a number as input
def round_to_two_decimals(number)
  # Step 2: Use the 'round' method to round the input number to two decimal places
  rounded_number = number.round(2)

  # Step 3: Return the rounded number as the result of the function
  rounded_number
end

# Step 4: Call the function with a specific number (replace 'your_number' with the actual number)
result = round_to_two_decimals(your_number)

# Step 5: Print the result to the console
puts result