SoftBasicSplitIntegerToArray 方法 |
将整数进行有效的拆分成数组,指定每个元素的最大值
Effectively split integers into arrays, specifying the maximum value for each element
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static int[] SplitIntegerToArray(
int integer,
int everyLength
)
Public Shared Function SplitIntegerToArray (
integer As Integer,
everyLength As Integer
) As Integer()
public:
static array<int>^ SplitIntegerToArray(
int integer,
int everyLength
)
static member SplitIntegerToArray :
integer : int *
everyLength : int -> int[]
参数
- integer
- 类型:SystemInt32
整数信息 - everyLength
- 类型:SystemInt32
单个的数组长度
返回值
类型:
Int32拆分后的数组长度
示例 int[] b1 = SoftBasic.SplitIntegerToArray( 10, 10 );
int[] b2 = SoftBasic.SplitIntegerToArray( 10, 5 );
int[] b3 = SoftBasic.SplitIntegerToArray( 10, 4 );
参见