Thread: unable to use long double

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    6

    unable to use long double

    Hello,
    I'm having trouble using the long double type. So I wrote a small c program to output the max number representable by long double, and the result was that on my computer the max number for long double is approx zero! (see the attached .PNG) file. I have a Lenovo P71 computer and I'm using gcc. Does anyone have an idea why this is happening? Is it connected to my hardware?
    Regards,
    bostjanv
    Attached Images Attached Images unable to use long double-longdouble-png 
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 06-07-2015, 03:28 PM
  2. number bigger than long long double
    By suryak in forum C Programming
    Replies: 9
    Last Post: 08-18-2011, 02:02 PM
  3. Replies: 1
    Last Post: 04-23-2011, 08:40 PM
  4. Replace double with long double in all my code.
    By boyfarrell in forum C Programming
    Replies: 8
    Last Post: 04-30-2007, 04:17 PM
  5. unable to read double A[0] and A[1] when n=1
    By sweetarg in forum C Programming
    Replies: 2
    Last Post: 10-25-2005, 12:35 PM

Tags for this Thread