一个数减去一个整数后,所得的差大于等于0小于1,那么减数就是其整数部分,差是其小数部分。一个整数的整数部分是它本身。小数的整数部分是小数点前面的数字。
对于浮点数,您将在整数部分和小数部分之间放置小数点。
For floating-point Numbers, you place a decimal as the separator between the whole part of the number and the fraction.
该属性获取一个布尔值,指出是否应当只解析所给值的整数部分。
This attribute takes a Boolean value indicating whether only the integer portion of the provided value should be parsed.
其中,int([arg]) 是 [arg] 的值的整数部分。
where int([arg]) is the integer portion of the value of [arg].
应用推荐