Velocity Reviews > long double literal

# long double literal

Ioannis Vranos
Guest
Posts: n/a

 03-04-2008
Do we designate a long double literal using an L after a floating point
literal, in the style:

long double d= 543.4545L;

Walter Roberson
Guest
Posts: n/a

 03-04-2008
In article <fqkgmf\$1plc\$(E-Mail Removed)>,
Ioannis Vranos <(E-Mail Removed)> wrote:
>Do we designate a long double literal using an L after a floating point
>literal, in the style:

>long double d= 543.4545L;

Yes, L or l (lower-case L) can be used.

--
"The shallow murmur, but the deep are dumb." -- Sir Walter Raleigh

Ioannis Vranos
Guest
Posts: n/a

 03-04-2008
Walter Roberson wrote:
> In article <fqkgmf\$1plc\$(E-Mail Removed)>,
> Ioannis Vranos <(E-Mail Removed)> wrote:
>> Do we designate a long double literal using an L after a floating point
>> literal, in the style:

>
>> long double d= 543.4545L;

>
> Yes, L or l (lower-case L) can be used.

Both apply to C90/C95?

Walter Roberson
Guest
Posts: n/a

 03-04-2008
In article <fqkh8d\$1plc\$(E-Mail Removed)>,
Ioannis Vranos <(E-Mail Removed)> wrote:
>Walter Roberson wrote:
>> In article <fqkgmf\$1plc\$(E-Mail Removed)>,
>> Ioannis Vranos <(E-Mail Removed)> wrote:
>>> Do we designate a long double literal using an L after a floating point
>>> literal, in the style:

>>
>>> long double d= 543.4545L;

>> Yes, L or l (lower-case L) can be used.

>Both apply to C90/C95?

Unless it got revoked in C95 I pulled the information from C89.

--
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth

Ioannis Vranos
Guest
Posts: n/a

 03-04-2008
Walter Roberson wrote:
> In article <fqkh8d\$1plc\$(E-Mail Removed)>,
> Ioannis Vranos <(E-Mail Removed)> wrote:
>> Walter Roberson wrote:
>>> In article <fqkgmf\$1plc\$(E-Mail Removed)>,
>>> Ioannis Vranos <(E-Mail Removed)> wrote:
>>>> Do we designate a long double literal using an L after a floating point
>>>> literal, in the style:
>>>> long double d= 543.4545L;

>
>>> Yes, L or l (lower-case L) can be used.

>
>> Both apply to C90/C95?

>
> Unless it got revoked in C95 I pulled the information from C89.

OK, thanks. AFAIK, C95 didn't revoke anything, bug fixes and 3 new

Falcon Kirtaran
Guest
Posts: n/a

 03-07-2008
Ioannis Vranos wrote:
> Do we designate a long double literal using an L after a floating point
> literal, in the style:
>
>
> long double d= 543.4545L;

I have used a lowercase l for this.

--
--Falcon Kirtaran

Micah Cowan
Guest
Posts: n/a

 03-07-2008
Falcon Kirtaran <(E-Mail Removed)> writes:

> Ioannis Vranos wrote:
>> Do we designate a long double literal using an L after a floating
>> point literal, in the style:
>>
>>
>> long double d= 543.4545L;

>
> I have used a lowercase l for this.

That's not a great idea, given that l and 1 look very very similar in
many fonts commonly used for viewing program sources.

--
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

jaysome
Guest
Posts: n/a

 03-07-2008
On Fri, 07 Mar 2008 06:28:08 GMT, Micah Cowan <(E-Mail Removed)>
wrote:

>Falcon Kirtaran <(E-Mail Removed)> writes:
>
>> Ioannis Vranos wrote:
>>> Do we designate a long double literal using an L after a floating
>>> point literal, in the style:
>>>
>>>
>>> long double d= 543.4545L;

>>
>> I have used a lowercase l for this.

>
>That's not a great idea, given that l and 1 look very very similar in
>many fonts commonly used for viewing program sources.

Others agree with you (including me).

http://www.gimpel.com/html/oldbugs/bug620.htm

Best regards
--
jay

A free OS that supports one of the best (free) C compilers available:
http://www.ubuntu.com/

santosh
Guest
Posts: n/a

 03-07-2008
jaysome wrote:

<snip>

What a complete turnaround WRT your sig. You used to fervently tout
Vista, what happened?

Richard Heathfield
Guest
Posts: n/a

 03-07-2008
santosh said:

> jaysome wrote:
>
> <snip>
>
> What a complete turnaround WRT your sig. You used to fervently tout
> Vista, what happened?

Presumably, Vista happened.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999