home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / protocol / tcpip / domains / 906 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.5 KB

  1. Path: sparky!uunet!virgin!unhtel!mozz.unh.edu!noc.near.net!not-for-mail
  2. From: jcurran@nic.near.net (John Curran)
  3. Newsgroups: comp.protocols.tcp-ip.domains
  4. Subject: Decimal units in DNS (was Re: Positional data within DNS)
  5. Date: 26 Jan 1993 21:39:36 -0500
  6. Organization: New England Academic and Research Network
  7. Lines: 26
  8. Distribution: inet
  9. Message-ID: <1k4sl8$b64@nic.near.net>
  10. References: <VIXIE.93Jan24005212@cognition.pa.dec.com>
  11. NNTP-Posting-Host: nic.near.net
  12.  
  13. In article <VIXIE.93Jan24005212@cognition.pa.dec.com> vixie@pa.dec.com (Paul A Vixie) writes:
  14. >radians are a more rational (in my opinion) way to represent polar
  15. >coordinates, but they are generally fractional.  i'm not sure this
  16. >matters, since the best idea i've heard so far is to allocate N bits
  17. >for the coordinate and then choose a unit that will maximize 
  18. >resolution for the neccessary range.  thousandths of seconds would fit
  19. >in an unsigned 32-bit integer, for example.  my bit-field idea was
  20. >over-designed.  if we use radians rather than degrees, we have to pick
  21. >an implied decimal point, or ...
  22.  
  23. On a tangential topic:
  24.  
  25.    In the bind beta code, is the zone file read routine (db_load.c) still
  26. disfunctional with respect to decimal SOA records?  Last time I looked,
  27. the code was as such:
  28.  
  29.     while (digit or .) {
  30.         if (ch=digit) n=n*10+digit_val
  31.         if (ch=.) n=n*1000
  32.         }
  33.  
  34. which works great for most values ('1.2' becomes 10002, etc.), but overflows
  35. for such things as '9212.001' (which becomes 9212000001 !).  Would anyone
  36. object if the mapping for pseudo-decimals were fixed in the future?
  37.  
  38. /John
  39.