scala:Convert a String to a Number

From Progzoo
Revision as of 20:10, 16 February 2015 by Andr3w (Talk | contribs)

Jump to: navigation, search

Integer.parseInt is the static method that you need here. You have access to all of the java.lang packages such as http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#parseInt(java.lang.String)

See also:

  • toDouble
  • toLong


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