Hide minor edits - Show changes to markup

June 05, 2010, at 12:44 AM
by

- Changed lines 5-6 from:

Los enteros sin firma (unsigned int) son los mismos enteros de modo que almacenan un valor de dos bytes. En lugar de almacenar números negativos, sólo almacenan valores positivos, generando un rango útil desde 0 a 65,535 ((2^16) - 1).

to:

Los enteros sin firma (unsigned int) son los mismos enteros de modo que almacenan un valor de dos bytes. En lugar de almacenar números negativos, sólo almacenan valores positivos, generando un rango útil desde 0 a 65,535 (2^16 - 1).

June 05, 2010, at 12:36 AM
by

- Changed lines 21-24 from:

When variables are made to exceed their maximum capacity they "roll over" back to their minimum capacitiy, note that this happens in both directions

to:

Cuando las variables sobrepasan su capacidad máxima dan la vuelta a su mínima capacidad. Ten en cuenta que esto sucede en ambas direcciones.

Changed lines 27-28 from:

x = x - 1; // x now contains 65535 - rolls over in neg direction x = x + 1; // x now contains 0 - rolls over

to:

x = x - 1; // x ahora contiene 65535 - da la vuelta en dirección negativa x = x + 1; // x ahora contiene 0 - da la vuelta

Changed lines 31-32 from:

to:

June 05, 2010, at 12:32 AM
by

- Changed lines 3-11 from:

Unsigned ints (unsigned integers) are the same as ints in that they store a 2 byte value. Instead of storing negative numbers however they only store positive values, yielding a useful range of 0 to 65,535 (2^16) - 1).

The difference between unsigned ints and (signed) ints, lies in the way the highest bit, sometimes refered to as the "sign" bit, is interpreted. In the Arduino int type (which is signed), if the high bit is a "1", the number is interpreted as a negative number, and the other 15 bits are interpreted with 2's complement math.

to:

Los enteros sin firma (unsigned int) son los mismos enteros de modo que almacenan un valor de dos bytes. En lugar de almacenar números negativos, sólo almacenan valores positivos, generando un rango útil desde 0 a 65,535 ((2^16) - 1).

La diferencia entre los enteros sin firma y los enteros (firmados), reside en que el bit más alto, a veces referenciado como el bit "firmado", es interpretado. En el tipo de datod int de Arduino (que es firmado), si el bit más alto es "1", el número es interpretado como un número negtivo, y los otros 15 bits son interpretados con complemento a 2.

Changed lines 13-14 from:

to:

Changed lines 17-20 from:

- var - your unsigned int variable name
- val - the value you assign to that variable

to:

- var - el nombre de tu variable unsigned int
- val - el valor que asignas a a esa variable

May 06, 2008, at 06:51 AM
by

- Changed lines 12-13 from:

int ledPin = 13;

to:

unsigned int ledPin = 13;

Changed lines 16-18 from:

int var = val;

- var - your int variable name

to:

unsigned int var = val;

- var - your unsigned int variable name

May 27, 2007, at 03:51 AM
by

- Changed lines 8-9 from:

The difference lies in the way the highest bit, sometimes refered to as the "sign" bit is interpreted. In the Arduino int type (which is signed), if the high bit is a "1", the number is interpreted as a negative number, and the other 15 bits are interpreted with 2's complement math.

to:

The difference between unsigned ints and (signed) ints, lies in the way the highest bit, sometimes refered to as the "sign" bit, is interpreted. In the Arduino int type (which is signed), if the high bit is a "1", the number is interpreted as a negative number, and the other 15 bits are interpreted with 2's complement math.

May 18, 2007, at 05:41 AM
by

- Changed lines 8-9 from:

The difference lies in the way the highest bit, sometimes refered to as the "sign" bit is interpreted. In the Arduino int type, which is signed, if the high bit is a "1", the number is interpreted as a negative number and the other 15 bits are interpreted with 2's complement math.

to:

The difference lies in the way the highest bit, sometimes refered to as the "sign" bit is interpreted. In the Arduino int type (which is signed), if the high bit is a "1", the number is interpreted as a negative number, and the other 15 bits are interpreted with 2's complement math.

May 18, 2007, at 05:39 AM
by

- Changed lines 8-9 from:

The difference lies in the way the highest bit, sometimes refered to as the "sign" bit is interpreted. In the Arduino int type, if the high bit is a "1", the number is interpreted as a negative number and the other 15 bits are interpreted with 2's complement math.

to:

The difference lies in the way the highest bit, sometimes refered to as the "sign" bit is interpreted. In the Arduino int type, which is signed, if the high bit is a "1", the number is interpreted as a negative number and the other 15 bits are interpreted with 2's complement math.

April 25, 2007, at 12:52 AM
by

- April 17, 2007, at 12:09 AM
by

- not sure that unsigned int x = 65536; does what you expect (constant are signed ints, I believe)Deleted lines 28-29:

x = 65535;

April 17, 2007, at 12:08 AM
by

- Changed lines 14-15 from:

to:

Changed lines 34-36 from:

to:

April 16, 2007, at 09:23 PM
by

- Added lines 24-25:

When variables are made to exceed their maximum capacity they "roll over" back to their minimum capacitiy, note that this happens in both directions

April 16, 2007, at 06:35 PM
by

- Changed lines 24-28 from:

[@unsigned int x x = 0; x = x - 1; // x now contains 65535 - rolls over x = 65535; x = x + 1; // x now contains 0

to:

[@ unsigned int x

x = 0; x = x - 1; // x now contains 65535 - rolls over in neg direction

x = 65535; x = x + 1; // x now contains 0 - rolls over

April 16, 2007, at 06:33 PM
by

- Changed lines 29-33 from:

to:

@]

April 16, 2007, at 06:32 PM
by

- Added lines 1-33:

Unsigned ints (unsigned integers) are the same as ints in that they store a 2 byte value. Instead of storing negative numbers however they only store positive values, yielding a useful range of 0 to 65,535 (2^16) - 1).

The difference lies in the way the highest bit, sometimes refered to as the "sign" bit is interpreted. In the Arduino int type, if the high bit is a "1", the number is interpreted as a negative number and the other 15 bits are interpreted with 2's complement math.

int ledPin = 13;

int var = val;

- var - your int variable name
- val - the value you assign to that variable

[@unsigned int x x = 0; x = x - 1; // x now contains 65535 - rolls over x = 65535; x = x + 1; // x now contains 0