Go to Post The answer the last 3 years would be any regional that 1114 attends. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 02-03-2002, 17:34
Ameya's Avatar
Ameya Ameya is offline
Freelance Goon
FRC #0293 (SPIKE Robotics)
Team Role: Alumni
 
Join Date: May 2001
Rookie Year: 2000
Location: Pennington, NJ
Posts: 67
Ameya is on a distinguished road
Send a message via ICQ to Ameya Send a message via AIM to Ameya
Quote:
Originally posted by Skabana159
Third, that word is an unsigned integer. It is in a format that I do not completely understand called the two's complement. Someone else will have to tell you what this means because I really have no idea. It will be a positive integer, but there is some way to tell if it is a negative value.
In two's complement, the first bit of a number represents the opposite of what it normally would. So, in a two's complement byte, 10000000 would represent -128 instead of +128. All of the other bits count as positive values.

Another example:

10000001 in two's complement is 1 + -128 = -127, while as an unsigned integer it would be 1 + 128 = 129.
__________________
Ameya Agaskar
Team 293 alumnus

Last edited by Ameya : 02-03-2002 at 17:38.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inverse Tangent D.Viddy Programming 10 25-01-2003 22:24
Trig archiver 2001 4 23-06-2002 23:14
Return of the Inverse Trig Functions Leo M Programming 3 24-01-2002 08:12
Vector Mathematics in PBASIC Adrian Wong Programming 10 06-12-2001 17:31


All times are GMT -5. The time now is 00:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi