語言

Integer.NumberOfTrailingZeros(Int32) 方法

定義

回傳在指定 int 值的補數二進位表示中,位於最低階(「最右」)一位元之後的零位元數。

[Android.Runtime.Register("numberOfTrailingZeros", "(I)I", "")]
public static int NumberOfTrailingZeros(int i);
[<Android.Runtime.Register("numberOfTrailingZeros", "(I)I", "")>]
static member NumberOfTrailingZeros : int -> int

參數

i
Int32

計算尾隨零點數的值

傳回

在二 int 元補數二進位表示中,零位元數為 32 位元,則為 32 位元。

屬性

備註

回傳在指定 int 值的補數二進位表示中,位於最低階(「最右」)一位元之後的零位元數。 若指定值的二補數表示中沒有一位元,也就是說,若值等於零,則回傳 32。

已在1.5中新增。

Java 文件 java.lang.Integer.numberOfTrailingZeros(int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於