http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with raycasting in Turbo C



simple

there is an operator called mod operator that give that result

a % b       (read a mod b) returns the reminder of a/b

Lionel Pinkhard wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> Can somebody help me? I need a method of getting a remainder from a
> division, this is the code I'm using:
>
> xinc = sangle[<function here>(tmp, 360)] / 100;
>
> I want it to get the remainder from tmp (float) / 360 and then call
> the array of that number from the sangle double float, divide it by
> 100 and store it in xinc (double float).
>
> Can somebody help, please?
>
> Kind regards,
>
> Lionel Pinkhard
>
> - --
>
>         "The moon could not continue shining if it had to pay attention to
> all the dogs barking at it." - Anonymous
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.0.2i
>
> iQA/AwUBOSFyNxyaHU58l8oMEQKt9wCdHafkDGW2v+IhrFQ/81p5FXLtKjUAnjXJ
> nHP3Za0LJHRJiFrGRISrp5xt
> =dEMx
> -----END PGP SIGNATURE-----
>
> =================================================================
> The GameProgrammer.Com mailing list is for the open discussion
> of any topic related to the art, science, and business of
> programming games. This list is especially tolerant of beginners.
> We were all beginners once
>
> To SUBSCRIBE or UNSUBSCRIBE please visit:
> http://gameprogrammer.com/mailinglist.html

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html