Español
Abrir en Telegram

Hiloя же сделал по другому немного но на Си:

2 mensajes · –
С
я же сделал по другому немного но на Си: float real48_to_float(unsigned char* real48_data) { unsigned char bytes[6]; float result; int i; /* Copy the 6 bytes of the real48 data into a local array */ for (i = 0; i < 6; i++) { bytes[i] = real48_data[i]; } /* Convert the real48 data to a float */ bytes[5] &= 0x7F; result = (float)((bytes[0] << 8) | bytes[1]); result += (float)((bytes[2] << 8) | bytes[3]) / 65536.0; result += (float)((bytes[4] << 8) | bytes[5]) / 4294967296.0; if (real48_data[5] & 0x80) { result = -result; } return result; }
  1. T
    Очень странно в float это совать. Он же 4 байтовый...
ССообщество Python ПрограммистовСообщество Python Программистов@python_scripts · grupo · Tecnología
4 169miembros43escriben en 30 días
Feed de la comunidad Abrir en Telegram

Un feed público abierto del índice de búsqueda ChatCrawler — el “Google del Telegram público”; se actualiza a medida que se rastrea la comunidad. Las horas se muestran en UTC.

Solo contenido público, API oficial de Telegram. Acerca de · Preguntas frecuentes · Límites del índice · Eliminar una página · Catálogo · Búsqueda · Cómo contamos