The exception is thrown by the explicit cast because the test case is trying to convert something of type String to an Integer.
这个异常是由显式类型转换抛出的,因为测试用例试图把类型为String 的东西转换成Integer。
The third element of the array is the number of points for this assignment type, so I have to invoke the to_s method to convert that integer into a string.
数组第三个元素是该任务类型的分数,所以我必须调用to_s方法,将该整数转换为字符串。
Tries to convert the string representation of a number in a specified style and culture-specific format to its 16-bit unsigned integer equivalent.
尝试将指定之样式及文化特性专属格式之数字的字串表示,转换为它的16位元不带正负号的整数对应项。
Tries to convert the string representation of a number to its 32-bit unsigned integer equivalent.
尝试将数字的字串表示转换为32位元不带正负号的整数。
Tries to convert the string representation of a number in a specified style and culture-specific format to its 64-bit unsigned integer equivalent.
尝试将数字的指定样式和区域性特定格式的字符串表示形式转换为其等效的64位无符号整数。
Tries to convert the string representation of a number to its 64-bit unsigned integer equivalent.
尝试将数字的字符串表示形式转换为等效的64位无符号整数。
Tries to convert the string representation of a number to its 64-bit unsigned integer equivalent.
尝试将数字的字符串表示形式转换为等效的64位无符号整数。
应用推荐