Gets the decimal digit value of a numeric Unicode character.
获取指定数值型字符的十进制数字值。
A word character is any letter, decimal digit, or punctuation connector such as an underscore.
任何字母、十进制的数字或标点符号连接器如下划线的单词字符。
Gets the decimal digit value of the numeric character at the specified index of the specified string.
获取位于指定字符串的指定索引位置的数值型字符的十进制数字值。
Glancing at the bottom, this is pretty arbitrary, but I chose to format my string as follows: % 1f so at the bottom here I'm printing out %.1f, which quick sanity check means print just one digit after the decimal place.
看下这个底部,这个是相当随意的,但我选择把我的字符串格式化成这样:,所以在这个底部我打印输出,提醒一下,这是一个只打印出,小数点后一位的方法。
应用推荐