Ruby stellt Format aus
score = 78.5431
puts "The average is %0.2f" % [score]
# Output => The average is 78.54
patrick204nqh
score = 78.5431
puts "The average is %0.2f" % [score]
# Output => The average is 78.54