Diaa Jad
12/02/2017, 11:46 PMchar
to an Int
?
var.toInt()
returns the ASCII value of the character.stkent
12/03/2017, 12:08 AMDiaa Jad
12/03/2017, 12:46 AMadam-mcneilly
12/03/2017, 12:54 AM'4'.toString().toInt()
because I felt like subtracting '0' was not immediately obvious. There's also a youtrack issue for a feature request for a char.asDigit()
method.Diaa Jad
12/03/2017, 1:02 AMAndreas Sinz
12/03/2017, 11:38 AMCharacter.toNumericInt(char)
from the java stdlibDiaa Jad
12/03/2017, 5:58 PM