Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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 Parker228,131 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.