Flucht und Rettungsplan - Preis
Flucht- und Rettungsplan für 139 €
  • Erstellung nach DIN-ISO 23601
  • Whitelabel-Service für B2B
  • Auf Wunsch gedruckt & laminiert
  • Schnelle Lieferung
Jetzt kostenlos anfragen
Sie befinden sich hier:

Converter - Anirdesh

// Get binary representation let binary = decimal.toString(2); binary = binary.padStart(bitWidth, '0');

function convertWithEndianness(value, fromBase, toBase, endianness = 'BE', bitWidth = 32) { // Convert to decimal first let decimal = parseInt(String(value), fromBase); // Convert to target base string let baseResult = decimal.toString(toBase).toUpperCase();

// Get byte array (big-endian by default) let hex = decimal.toString(16).padStart(Math.ceil(bitWidth / 4), '0'); let bytes = []; for (let i = 0; i < hex.length; i += 2) { bytes.push(parseInt(hex.substr(i, 2), 16)); }

if (endianness === 'LE') { bytes.reverse(); }

Sie haben Fragen zu unserem Angebot?

Das Brandschutz Checkup Team steht Ihnen mit Rat und Tat zur Seite und nimmt sich gerne die Zeit, alle Ihre Fragen zu beantworten.

Kontaktformular