Ruby Ruby Basics Numbers Numeric Types

Paris Lopez
Paris Lopez
Pro Student 357 Points

Assigning the number 2 to the variable 'integer'.

I was just sure that I had assigned it correctly but I keep getting the big red "bummer" every time I recheck my work. I don't know what I did wrong.

integer = "2"
float = "2.0"

1 Answer

Steven Parker
Steven Parker
163,574 Points

Quote marks indicate string values. You don't use quotes with number values.