Skip to main content
Version: 1.x

@microsoft/fast-colors > getHexStringForByte

getHexStringForByte() function

Converts a number between 0 and 255 to a hex string.

Signature:
export declare function getHexStringForByte(i: number): string;

Parameters

ParameterTypeDescription
inumberthe number to convert to a hex string
Returns:

string