CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2002
    Posts
    35

    how to get log2 of a value

    Hi,
    Can anyone tell me how to get log of a value in C.
    log function works only in .cpp files not in .c file

    thanks

  2. #2
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    1,664
    What?!?! Do you mean the logarithm?

  3. #3
    Join Date
    Apr 2002
    Posts
    35
    yes..logarithm

  4. #4
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    1,664
    Use log() or log10() funcitons declared in math.h. Doesn't that work?

  5. #5
    Join Date
    Apr 2002
    Posts
    35
    thanks ..it works.i was making a mistake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured