Click here to Skip to main content
15,887,214 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: People still use Usenet? Pin
Jeremy Falcon14-Dec-22 11:53
professionalJeremy Falcon14-Dec-22 11:53 
GeneralRe: People still use Usenet? Pin
trønderen14-Dec-22 17:23
trønderen14-Dec-22 17:23 
GeneralRe: People still use Usenet? Pin
Daniel Pfeffer14-Dec-22 19:09
professionalDaniel Pfeffer14-Dec-22 19:09 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Member 916705714-Dec-22 21:20
Member 916705714-Dec-22 21:20 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Daniel Pfeffer14-Dec-22 22:30
professionalDaniel Pfeffer14-Dec-22 22:30 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Member 916705714-Dec-22 22:33
Member 916705714-Dec-22 22:33 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Daniel Pfeffer15-Dec-22 0:23
professionalDaniel Pfeffer15-Dec-22 0:23 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Member 916705715-Dec-22 0:53
Member 916705715-Dec-22 0:53 
I'm perfectly aware of the fact that IEE 754 ROUNDS floats as you can't, for obvious reasons, represent them exactly.
However, if we really want to hammer details here, how would you represent Pi in binary EXACTLY?

The most obvious approach would be a classical LongInt: that is a number array with each number representing a digit. But the Pi digits we're talking about are decimal so now we don't get every possible piece of binary data! Well, sure, you could calculate & represent Pi as hexadecimal digits but what's with the underlying computing system? RAM is, generally, organized in pages (on a system you would calculate Pi anyway and I sure as hell wouldn't do this on an MCU with a raw memory model) and you don't know how those pages are laid out, you don't even know if you can fill those pages!

My point is, if you really don't want to take this with a wink, if you really want to go into the details in a pedantic manner, the statement in the OP isn't nearly as clear as if you take the basic idea and run with it.

I'm somewhere between a physicist and a software engineer, not only do I need pedantry in my job, I love it! Well, I don't technically need it, I got co-workers proving day after day that you don't need discipline, that clearing up the mess arising from handwaving important details but I'd rather pour effort into fun parts of the job and clearing up a mess I've let lying around isn't fun.

However, this is the lounge here, not a specification meeting, and the OP got a fantastic idea in theory. So I'm treating this one with a wink. Without winks, arbitrary precision doesn't make sense. Without winks, you need a precision up to a fixed point. This point depends on the use case, of course, but there's still a finite point to which we need numbers to be precise. Including measurement results, including Pi. So if you really want to get into the practical implications of all this, then Pi is effectively finite.
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Peter Moore - Chicago15-Dec-22 0:48
Peter Moore - Chicago15-Dec-22 0:48 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Daniel Pfeffer15-Dec-22 3:58
professionalDaniel Pfeffer15-Dec-22 3:58 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
trønderen15-Dec-22 9:09
trønderen15-Dec-22 9:09 
GeneralRe: Converting Pi to binary: DON'T DO IT! Pin
Daniel Pfeffer15-Dec-22 13:09
professionalDaniel Pfeffer15-Dec-22 13:09 
GeneralElephant you: Microsoft, HP, and Mcafeces Pin
Dan Neely13-Dec-22 9:56
Dan Neely13-Dec-22 9:56 
GeneralRe: Elephant you: Microsoft, HP, and Mcafeces Pin
Single Step Debugger14-Dec-22 3:06
Single Step Debugger14-Dec-22 3:06 
GeneralRe: Elephant you: Microsoft, HP, and Mcafeces Pin
obermd14-Dec-22 5:46
obermd14-Dec-22 5:46 
RantEvery year, I have to print the labels for our Christmas cards. Pin
OriginalGriff13-Dec-22 8:52
mveOriginalGriff13-Dec-22 8:52 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
Mircea Neacsu13-Dec-22 9:09
Mircea Neacsu13-Dec-22 9:09 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
fgs196313-Dec-22 9:23
fgs196313-Dec-22 9:23 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
Mycroft Holmes13-Dec-22 11:32
professionalMycroft Holmes13-Dec-22 11:32 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
Daniel Pfeffer13-Dec-22 11:35
professionalDaniel Pfeffer13-Dec-22 11:35 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
DRHuff13-Dec-22 15:11
DRHuff13-Dec-22 15:11 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
Richard Deeming13-Dec-22 22:14
mveRichard Deeming13-Dec-22 22:14 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
Peter_in_278013-Dec-22 17:36
professionalPeter_in_278013-Dec-22 17:36 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
pkfox13-Dec-22 21:52
professionalpkfox13-Dec-22 21:52 
GeneralRe: Every year, I have to print the labels for our Christmas cards. Pin
Choroid15-Dec-22 5:36
Choroid15-Dec-22 5:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.