If you need another data type such as integer, floating point, or Boolean value, you will have to parse the string using the appropriate wrapper class.
如果需要其他的数据类型,比如说整数、浮点数或者布尔值,必须使用相应的包装器类来解析字符串。
To model more complex designs, you can type tags by stereotypes and meta-classes, in addition to Boolean, string, integer, user-defined data type, and terms.
危机对更加复杂的设计建模,除了逻辑型,字符串型,整数型,用户自定义的数据类型,您可以对更加复杂的问题建模。
For the next example, we'll add the ability to store and manipulate arrays of integer, Boolean, and string values.
在接下来的例子中,我们将增加存储和操纵整型、布尔型和字符串值的功能。
For example, assigning an integer value to a string property will cause the integer to be converted to a string.
例如,若为字符串属性指派一个整型值,整型值将被转换为字符串。
In the example, you can now compare the string value 42 to the integer column col1.
在这个例子中,现在可以将字符串值42与整数列col1进行比较。
Sometimes, simple types (string, integer, Boolean) are easier to use because they avoid problems.
有时,简单的类型(字符串、整数和布尔型)更容易使用,因为它们不容易出问题。
This structure takes advantage of Python's ability to treat methods as variables and pass them as arguments in exactly the same way a string or integer would be passed.
这种结构利用了Python可以将方法视为变量并可以将它们作为参数传递(传递的方式与传递字符串或整数相同)的优势。
The group identifier is set to the JMSXGroupId string property and the sequence number to the JMSXGroupSeq integer property.
组标识符设置为JMSXGroupId字符串属性,序列号设置为JMSXGroupSeq整数属性。
stdlib.h is needed for the atoi() function (ASCII to integer), which converts a string to an integer.
h是atoi()函数(将ASCII 码转换为整数)所需要的,该函数将字符串转换为整数。
The key isn't restricted to being an integer; it can be any nonmutable data type, including an integer, float, tuple, or string.
键并不限制为整数;它可以是任何不易变的数据类型,包括integer、float、tuple或string。
This is due to the encoding of the group information in the binary string, and a grouping parameter of type VARCHAR requires potentially more space than a simple INTEGER value.
这是将分组信息编码到二进制串中的缘故,分组参数类型为VARCHAR,比简单的INTEGER类型潜在地要求更多的存储空间。
In cases where the string cannot be converted to an integer, a user-specified default int is placed in the target field.
对于不能将字符串转换为整数的情况,将在目标字段中使用一个用户指定的默认整数。
To store a boolean value or an integer to the item set, the value needs to be converted to a string.
要将布尔值或整数存储到项目集,需要将该值转换为字符串。
For example, if the string "123a" is mapped to an integer, you will see a NumberFormatException in the server log.
例如,如果将字符串“123a”映射到到一个整数,您将在服务器日志中看到NumberFor matException。
In the previous program, you used both integer and string data and never had to tell the Scheme language what type of data was being used.
在先前的程序中,您使用了整型和字符串数据,因此没有告诉scheme语言正在使用的是哪种类型的数据。
The to text node creates a string from the size integer that will be the sequence number in the file name.
to text节点将根据要用作文件名中的序列号的大小整数创建一个字符串。
Each stored attribute is a simple array of bytes, but it's possible to interpret the attribute as a Boolean, integer, or string attribute.
每个已保存的属性是一个简单的字节数组,但是可以将该属性转换为Boolean、整数或字符串属性。
One example of this would be the use of the XML: any data type, as opposed to restricting input to an integer or string.
使用xml:any数据类型就是这样的一个例子,它并没有将输入数据限定为整数或者字符串。
The call to the preg_replace() function replaces the dollar sign, any whitespace, and every comma with the empty string, yielding what's supposed to be an integer.
调用 preg_replace()函数将用空字符串替换美元符号、所有空格和每个逗号,生成认为是整数的内容。
When a string is used as a Boolean, it is first converted to an integer, and then evaluated for truth (non-zero) or falsehood (zero).
当将字符串作为布尔值使用时,将首先把字符串转换为整数,然后再计算真(非0)或假(0)。
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方法,将该整数转换为字符串。
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。
Common primitive types are string, integer and Boolean; however, as you'll see a little further along in this article, you can also map an element to an array or a custom class.
常见的基本类型有string、integer和boolean,不过,后面将看到还能将元素映射为数组或自定义类。
Repeat the previous steps to add another 2.0 CMP bean named Authorwith an id key field typed to Integer and a name field typed to String.
重复先前的几步来添加另一个名为Author 的 2.0CMPbean,id主要的字段被定为Integer 型并且name 字段被定为 String 型。
This parameter is optional and can be specified as a string, integer, or hexadecimal value corresponding to the LCID of a language.
此参数是可选参数,可以指定为与某种语言的LCID对应的字符串、整数或十六进制值。
The result is the string '42', which is not to be confused with the integer value 42.
你看,经过格式化后,结果就是字符串'42'了,而不是再是整数值42了。
A symbol is a resource identifier (id) that consists of two parts: a text string (symbol name) mapped to an integer value (symbol value).
符号是资源标识符(ID),由两部分组成:文本字符串(符号名)及其映射的整数值(符号值)。
If the string is being passed to the integer function, you'll see this in the call stack.
如果字符串传递到整数的函数,你会看到调用堆栈中的这一点。
Expression that evaluates either a string containing the name of an environment variable, or an integer corresponding to the numeric order of an environment string in the environment-string table.
表达式,计算为包含环境变量名称的字符串,或对应于环境字符串表中环境字符串的数字顺序的整数。
Each string (in the macro expansion) represents an integer in Angle brackets. Integers range from 0 to 7, with smaller values representing higher priorities.
每一个字符串(由宏扩展而成)表示了尖括号内的一个整数。数值范围从0到7,数值越小,优先级越高。
应用推荐