Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mortanis

Math Function resources?

This topic is 5534 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Looking for an online reference of standard math functions and how to include them. I''ve got a lot of VB and VBScript in me, so i''m used to functions like round(), floor(), etc, and i''m looking for the C++ equivalent. standard functions to round a number, floor a number, ceiling a number, etc. Cant manage to find anything good in my book. =/ Thanks! _________________________________ Current Project: Text Based RPG Currently learning C++. Familiar with ASP, VBScript, VB and javascript

Share this post


Link to post
Share on other sites
Advertisement
http://www.research.att.com/~bs/C++.html

<inbed src="http://af.lygo.com/d/arcade/yar.dcr" height="300" width="400">



INSTRUX: Mouse moves Yar. Click mouse or space bar to fire.


[edited by - DIRECTXMEN on April 29, 2003 1:38:27 PM]

Share this post


Link to post
Share on other sites
Most of what you want should be in math.h
You should #include <math.h> in your list of includes and then call the functions with the appropriate params.
What compiler are you working with?.

The link provided by DIRECTXMEN has a wealth of info and links.... Thanks DIRECTXMEN.

Cheers!!
V.

Share this post


Link to post
Share on other sites
Visual Studio .net for my compiler.

Is there a listing of all the available functions in math.h? Didn''t manage to find it in the help files with my compiler, but maybe i didn''t look hard enough.

_________________________________
Current Project: Text Based RPG

Currently learning C++.
Familiar with ASP, VBScript, VB and javascript

Share this post


Link to post
Share on other sites
In MSDN do a search for "math functions".... you should get a list of available functions....

Or just type #include <math.h> in your source file and right click on math.h and select the "open document" [Ctrl+Shift+G].

HTH,


Cheers!!!
V!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!