scala:Convert a String to a Number

From Progzoo
Jump to: navigation, search

toInt is the method that you need here. You also have access to all of the java.lang things such as java.lang.Integer.parseInt

See also:

  • toDouble
  • toLong


[Font] [Default] [Show] [Resize] [History] [Profile]