Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-22-2002, 10:25 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
this question wasn't directed at me, but I feel compelled to answer

Hex is a 16-digit number system (as opposed to our 10-digit system)

so, in Hex

1 is 16^0
10 is 16^1
100 is 16^2

where in standard

1 is 10^0
10 is 10^1
100 is 10^2

to have these extra 6 digits, the letters A-F are used

Hex to Standard conversions

5 - 5
9 - 9
A -10
C - 12
F - 15
10 - 16

In graal, to show a number is hex, we start off this number with 0x

0x1AF
0xFF

the good thing about hex, is that every value that can be stored in a byte is a two digit number in hex, because "FF" is 255, and that is the max a byte can hold...so and two digits will be a byte

I am bored, so hey
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.