swarm-support
[Top][All Lists]
Advanced

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

float/double


From: Chimera
Subject: float/double
Date: Thu, 30 Jul 1998 16:02:06 -0700

Here is what should be a beginners question, but it is biting me now.

According to the man page and reference texts, putting "l" in front of
"d" or "f" in printf or scanf implies a "long" value.  The problem I am
encountering is that "%ld" is accepted, but "%lf" isn't.  Is this
telling me that there is no difference between a float and a double on
the machine?  Note I am talking Unix.

Cheers,

   D3

--
*********************************************************************
* Doug Donalson                 Office: (805) 893-2962
* Ecology, Evolution,           Home:   (805) 961-4447
* and Marine Biology            email address@hidden
* UC Santa Barbara
* Santa Barbara Ca. 93106
*********************************************************************
*
*   The most exciting phrase to hear in science, the one that
*   heralds new discoveries, is not "EUREKA" (I have found it) but
*   "That's funny ...?"
*
*       Isaac Asimov
*
*********************************************************************



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]