HexFormat.ToHighHexDigit(Int32) Method

Definition

Returns the hexadecimal character for the high 4 bits of the value considering it to be a byte.

[Android.Runtime.Register("toHighHexDigit", "(I)C", "", ApiSince=34)]
public char ToHighHexDigit (int value);
[<Android.Runtime.Register("toHighHexDigit", "(I)C", "", ApiSince=34)>]
member this.ToHighHexDigit : int -> char

Parameters

value
Int32

a value, only bits 4-7 of the value are used

Returns

the hexadecimal character for the bits 4-7 of the value

Attributes

Remarks

Returns the hexadecimal character for the high 4 bits of the value considering it to be a byte. If the parameter #isUpperCase() is true the character returned for values 10-15 is uppercase "A-F", otherwise the character returned is lowercase "a-f". The values in the range 0-9 are returned as "0-9".

Java documentation for java.util.HexFormat.toHighHexDigit(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to