delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/09/16:47:02

From: "Elias Pschernig" <f DOT x DOT gruber-museum-arnsdorf AT magnet DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: float
Date: Sat, 9 May 1998 22:03:21 +0200
Organization: magnet Internet Services
Lines: 19
Message-ID: <6j2crt$i0$1@orudios.magnet.at>
NNTP-Posting-Host: 195.3.67.116
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've a problem:
I'm working on a game, which uses "float"-type for
x- and y-coordinates of an object. Sometimes the
object starts moving very, er, bulky, and i found out,
this is the case, when either y or x coordinate go
over 100000; the larger, the more bulky the movement.
I'm now sure this has to do with the float-type, but
it's very strange, because there occurs no other
error, i.e. the position always is correct, even with
large numbers, just it moves not smoothly any more.

I would like it very much, if somebody could
explain to me how DJGPP's float-type works.
(also if it's the i86's float-type)

many thanks in advance,
Elias Pschernig


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019