how to check the decimal type in ts code example Example: typescript number to hex string var g: number = 255; alert(g.toString(16));