Click here to Skip to main content
15,900,725 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: for you Singles ... struggling for dignity, and basic numeric rights Pin
Ravi Bhavnani3-Sep-21 17:39
professionalRavi Bhavnani3-Sep-21 17:39 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
BillWoodruff3-Sep-21 17:48
professionalBillWoodruff3-Sep-21 17:48 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
Greg Utas4-Sep-21 1:31
professionalGreg Utas4-Sep-21 1:31 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
Gary R. Wheeler4-Sep-21 3:36
Gary R. Wheeler4-Sep-21 3:36 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
Richard MacCutchan3-Sep-21 23:40
mveRichard MacCutchan3-Sep-21 23:40 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
Gary R. Wheeler4-Sep-21 3:41
Gary R. Wheeler4-Sep-21 3:41 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
Mike Hankey4-Sep-21 4:03
mveMike Hankey4-Sep-21 4:03 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
Daniel Pfeffer4-Sep-21 8:14
professionalDaniel Pfeffer4-Sep-21 8:14 
Very, very good! Thumbs Up | :thumbsup: Beer | [beer]

To step out of character and be serious for a moment, there is nothing wrong with float (Single), double (Double) or any of their more precise siblings, and each has their own place. 'float' has its place e.g. for storing the results of measurements (very few measurements are made to more than 6 decimal digits of precision), and only takes half the storage, but it is usually inappropriate for complex calculations.

There cases where where even float uses too much space. A few years ago I was given a problem that required the storage of large amounts of data in a small memory footprint, and for performance and other reasons, flushing to disk was not possible (one of the things we were measuring was the response speed of the disk). It simultaneously required a fairly large range (7 orders of decimal magnitude), and reasonable precision. Half (binary16) didn't fit the bill.

I designed a highly problem-specific, storage-only format which encoded a scale + significand which fit the requirements well enough, solved the rest of the problem (which also required a little creative thinking, and a bit of mathematics), ran it past a mathematician at work, and everyone was very happy.f
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.

GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
BillWoodruff4-Sep-21 13:48
professionalBillWoodruff4-Sep-21 13:48 
GeneralRe: for you Singles ... struggling for dignity, and basic numeric rights Pin
jsc424-Sep-21 10:56
professionaljsc424-Sep-21 10:56 
GeneralOh swearword. Swearword, swearword, swearword, swearword. Pin
OriginalGriff3-Sep-21 5:30
mveOriginalGriff3-Sep-21 5:30 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
PIEBALDconsult3-Sep-21 5:47
mvePIEBALDconsult3-Sep-21 5:47 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
OriginalGriff3-Sep-21 5:56
mveOriginalGriff3-Sep-21 5:56 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
Maximilien3-Sep-21 11:52
Maximilien3-Sep-21 11:52 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
David O'Neil3-Sep-21 6:24
professionalDavid O'Neil3-Sep-21 6:24 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
Mike Hankey3-Sep-21 6:30
mveMike Hankey3-Sep-21 6:30 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
theoldfool3-Sep-21 7:25
professionaltheoldfool3-Sep-21 7:25 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
Eddy Vluggen3-Sep-21 9:52
professionalEddy Vluggen3-Sep-21 9:52 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
OriginalGriff3-Sep-21 10:37
mveOriginalGriff3-Sep-21 10:37 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
Eddy Vluggen3-Sep-21 13:17
professionalEddy Vluggen3-Sep-21 13:17 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
Mycroft Holmes3-Sep-21 12:23
professionalMycroft Holmes3-Sep-21 12:23 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. - UPDATE Pin
Nelek3-Sep-21 12:30
protectorNelek3-Sep-21 12:30 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
Jörgen Andersson3-Sep-21 23:18
professionalJörgen Andersson3-Sep-21 23:18 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
stoneyowl24-Sep-21 4:02
stoneyowl24-Sep-21 4:02 
GeneralRe: Oh swearword. Swearword, swearword, swearword, swearword. Pin
englebart4-Sep-21 5:05
professionalenglebart4-Sep-21 5:05 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   494 votes