Skip to content

Instantly share code, notes, and snippets.

@fulippo
Created April 14, 2015 11:41
Show Gist options
  • Save fulippo/8c7643670f841cc2aaca to your computer and use it in GitHub Desktop.
Save fulippo/8c7643670f841cc2aaca to your computer and use it in GitHub Desktop.
Calcolo esadecimale
Valore * base^posizione da destra + Valore * base^posizione da destra ....
es. 0xAF
F * 16^0 + A * 16^1
diventa
15 * 16^0 + 10 * 16^1
diventa
15 + 160
0xAF = 175
// Valori esadecimali
A = 10;
B = 11;
C = 12;
D = 13;
E = 14;
F = 15;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment