@xyzz:
Well, getting the UDC positioned to teh camera entity would be MUCH harder to accomplish and not nearly as dynamic if you set it up in the console's script. Setting up the UDC from the camera's script will be more dynamic and definitally much easier.
@meteorite:
No body deals in bits anymore, it's most likely going to be some number of bytes. So to use the minimal amount of space of memory, people use bytes if they know that a number will never exceed 255.
In binary, each digit is a power of 2, just like in decimal where each digit is a power of 10.
Each digit can only be a number from 0 to (power of system - 1), so in decimal the system is power of 10, so each digit may only be 0-9, in binary the system is power of 2, so each digit may only be 0-1.
To calculate what a number is in each system, you count what digit you're looking is from right to left. Remember that furthest right digit is 0, not 1. So in 1763, from right to left, it goes from digit 0 to digit 3. Let us look at the 7. This is digit number 2. So we take the base number (10 in decimal) and take it to the power of the digit number. So we has 10^2. Then multiply the answer (100) by the number we saw in that digits place. 7 * 100 = 700. You find that out for ALL digits in the number, then add them up... obviously you get 1763. Real easy for decimal, cuz we all think in decimal.
So, let us find the highest that an 8 bit number can be. In binary the highest number each digit can be is 1, so the highest 8 bit number will be:
11111111 (<----- That's 8 1's)
Counting up from 0, we see that there are 7 digits here.
This is easy part because we can skip the multiplying part, hehe. (Anything multiplied by 1 is anything, right?)
We go from right to left as always:
(2^(digit number) = )
2^0 = 1
2^1 = 2
2^2 = 4
2^3 = 8
2^4 = 16
2^5 = 32
2^6 = 64
2^7 = 128
Now... we found what each digit is worth, let's add them up. After that we see that the HIGHEST 8 bit number we can have is.... 255.
Easy way to find this out if ALL digits are 1.... find what digit AFTER last digit equals and subtract 1.
2^8 = 256
256 - 1 = 255
There, you are now a certified binary calculator.
The one and only,
Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.