Jump to content

e constant in Visual studio?

- - - - -

  • Please log in to reply
3 replies to this topic

#1
idioteque2131

idioteque2131

    Newbie

  • Members
  • Pip
  • 4 posts
Hey, does anyone know of an include or anything for visual studio 2008 that has the e constant included thats used in math programs and how to use it?

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
EDIT: Complete idiot, looked at the wrong thing. Edited post to remove idiocy.

I don't know if there's an include file; I suggest you just #define it.
#define    ((long double)2.71828182845904523536)

sudo rm -rf /

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
exp - Math.h - C Reference with Worked Examples

exp(1)
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
*smacks forehead*
sudo rm -rf /




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users