Join Slack
Powered by
is there a more concise way (without catching exce...
# announcements
p
pawegio
03/11/2016, 10:41 PM
is there a more concise way (without catching exception) to parse numbers in kotlin?
Copy code
val s = "N/A" val f = try { s.toFloat() } catch(e: NumberFormatException) { 0f }
Open in Slack
Previous
Next