This topic contains 1 reply, has 1 voice, and was last updated by  DataFlair Team 1 year, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6600

    In the code for Retail Data Analysis in Scala, is it ok to use “Tokens(4).toFloat” instead of “Float.parseFloat(Tokens(4))” to convert string to Float?

    #6601

    Yes you can use Tokens(4).toFloat to convert String to Float, it is scala API for the same.

    Float.parseFloat… is the Java API.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.