Given a string object like this:
twohundred = "200"
What is the difference between doing:
Integer(twohundred) #=> 200
and:
twohundred.to_i #=> 200
Is there any difference? Is it recommended to use one among the other one?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…