🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25198

Re: Bet nobody else has *this* problem...

#25198
From: rjk
Date: Wed, 14 Jan 1998 00:00
17 lines
1086 bytes
matija@arnes.si (Matija Grabnar) writes:

> That's weird. Perl uses doubles by default, which means it is accurate
> up to 49 bits, which should be enough even for most news applications:
> 
> perl -e '$j=1;for $i (0..64) { print "$i $j\n"; $j*=2; }'
> 0 1
[...]
> 64 1.84467440737096e+19
> 
> Maybe someone said 'use int' or something like that?

I have been bitten by using `printf "%d"' with very large integers in
Perl before...

Technical Details
Message-ID: <wwvbtxedeia.fsf@sfere.greenend.org.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <34bc54cf.289908102@news.corp.home.net> <EMq2su.7vt@spcuna.spc.edu> <34bd3a1b.348629872@news.corp.home.net> <69im0p$bmu$1@kanja.arnes.si>

Show Full Headers
Complete Article Headers
Message-ID: <wwvbtxedeia.fsf@sfere.greenend.org.uk>
Subject: Re: Bet nobody else has *this* problem...
Date: Wed, 14 Jan 1998 00:00:00 +0000
From: rjk@greenend.org.uk
References: <34bc54cf.289908102@news.corp.home.net> <EMq2su.7vt@spcuna.spc.edu> <34bd3a1b.348629872@news.corp.home.net> <69im0p$bmu$1@kanja.arnes.si>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 315998529
Organization: Blackbox
Newsgroups: news.software.nntp