+ 1
How can i convert varible to boolean, string, float in ruby?
4th Feb 2018, 4:45 AM
Denis
2 Answers
+ 5
x.to_b
x.to_s
x.to_f
4th Feb 2018, 7:14 AM
Kuba SiekierzyĆski

+ 1
Thank you!
4th Feb 2018, 7:51 AM
Denis
Often have questions like this?
Learn more efficiently, for free:
Hot today
Fast coding (mobile)
1 Votes
..
1 Votes
Beginner_to_SoloLearn
2 Votes
DSA doubt
1 Votes
Coding help
2 Votes
Bridge pattern use case
0 Votes
Data structure using C
0 Votes
Input errors (python)
1 Votes