单项选择题

以下哪个JavaScript方法用于将字符串转换为浮点数?()

A.parselnt()
B.parseFloat()
C.toString()
D.toFixed()