/**
 * Convert a floating point number to hexadecimal format
 * @param floatNum - The float number to convert
 * @returns Hexadecimal string representation with 'h' suffix
 */
export function floatToHex(floatNum: number): string {
    const floatArray = new Float32Array(1);
    floatArray[0] = floatNum;
    const byteArray = new Uint8Array(floatArray.buffer);
    let hex = '';
    for (let i = byteArray.length - 1; i >= 0; i--) {
        hex += byteArray[i].toString(16).padStart(2, '0').toUpperCase();
    }
    return hex + 'h';
}
