From: Groepaz (groepaz_at_gmx.net)
Date: 2000-12-14 13:44:04
> > a) 16bit unsigned 'addresses'
> > b) 16bit signed 'variables'
> > c) 8.8 signed fixed-point 'variables'
> >
> > math functions should take and return variables in 8.8 format, whereas the user
> > would be responsible to properly convert them forth and back.
>
> This would really be a *very* special feature. Calculating
>
> sin (PI / 2)
>
> starts getting troublesome if you have to specify PI in 8.8 signed fixed point
> format...
nononononono.... you just DONT calculate 'PI/2' ;=D
i forgot to mention in this system of making calculations,
360degrees = $100
trig. functions take 'degrees' as args, not radients (uhm, this is where my
english knowledge leaves me hahaha ;/)
so instead of
sin(PI/2)
you'd use
sin($80/2)
dont forget what you'd actually do with the values you'd calculate.... after-
all in most cases you would handle them as if they were fixedpoint values,
due to the fact you need to keep them within a certain 8bit range. (again, i
have yet to hear of a case where floats would make sence)
gpz
--
----------------------------------------------------------------------
/^\
\ /
ASCII RIBBON CAMPAIGN X AGAINST HTML JUNK MAIL
/ \
----------------------------------------------------------------------
___ ___ .___________________ .___________ _______.
c=64 / | \| \__ ___/ \ \_ _____/ \ \ groepaz
cgb / ' \ | | | / \ / \ | __)_ / | \
psx \ . / | | |/ ' \| \/ | \
dc \___|_ /|___| |____|\____|__ /_______ /\____|__ /
\/ ' \/ \/ \/
http://www.hitmen-console.org Hitmen WWW Headquarters
http://fly.to/hitmen-groepaz my personal playground
----------------------------------------------------------------------
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:37 CET