Pui Lun Christin C Hebron5,693 Points
We've assigned the string "123" to a variable named string. Take string, use a method to convert it to an integer, and s
I am a bit confused about this question. This is what I have
string = "123" integer = 123 string = integer.to_i
float = 123.0 string = float.to_i
string = "123" # YOUR CODE HERE integer = 123 string = integer.to_i float = 123.0 string = float.to_f
Steven Parker195,575 Points
The instructions tell you to to convert the variable "string" to an integer, and to a float. You won't need to use any literal numbers in your code.