I attempted the following command in Scala and get a NumberFormatException
, but I am not sure why. It may be something elementary, but I would certainly appreciate an extra set of eyes. Thank you so much!
"11111000000000000000".toLong
java.lang.NumberFormatException: For input string: "11111000000000000000" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:592) at java.lang.Long.parseLong(Long.java:631) at scala.collection.immutable.StringLike$class.toLong(StringLike.scala:276) at scala.collection.immutable.StringOps.toLong(StringOps.scala:30)
... 33 elided