-
a sort-of calculator with one function - read inside fro more detail
Ok, I want to make a fla (using flash mx) that the viewer can enter a number into a thing then press a button and gives them the answer in another area.
The formula is:
a/16 = b
int(b) = c
(a/16-c)*16 = d
c and d are looked up on the below table (left collumn) and are replace with the right collumn then renamed e and f
| starts | ends |
-----------------
| 0` | 0 |
| 1` | 1 |
| 2` | 2 |
| 3` | 3 |
| 4` | 4 |
| 5` | 5 |
| 6` | 6 |
| 7` | 7 |
| 8` | 8 |
| 9` | 9 |
| 10 | A |
| 11 | B |
| 12 | C |
| 13 | D |
| 14 | E |
| 15 | F |
g = e&f
a is the input
g is the output
To clarrify.
a = 125
125/16 = 7.8125
int(7.8125) = 7
(125/16-7)*16 = 13
7 = 7
13 = D
g = 7&D
input is 125
output is 7D
Can anyone help me create this calculator?
Again, it is in fla format and created in Flash MX
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|