Vidyalelo
Ruby Programming · Q8

Data Types and Variables in Ruby

Programming · Ruby Programming · question 8

Q8

What is the method used to convert a string to a float in Ruby?

A.
.to_f
Answer
B.
.to_float
C.
.convert_float
D.
.parse_float

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board