Discussion Forum : Ruby Basics
Question - Which of the following are valid floating point literal?
Options:
A .  5
B .  2
C .  0.5
D .  None of the mentioned
Answer: Option C


floating point literals are valid only when they have digits on both the sides of decimal point.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *