is there a more concise way (without catching exce...
# announcements
p
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 }