Click here to Skip to main content
15,886,578 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.

 
GeneralThe Decline and Fall of Search Engines Pin
W Balboos, GHB7-Jan-21 1:11
W Balboos, GHB7-Jan-21 1:11 
GeneralRe: The Decline and Fall of Search Engines Pin
Richard Deeming7-Jan-21 1:13
mveRichard Deeming7-Jan-21 1:13 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB7-Jan-21 1:22
W Balboos, GHB7-Jan-21 1:22 
GeneralRe: The Decline and Fall of Search Engines Pin
Richard Deeming7-Jan-21 1:27
mveRichard Deeming7-Jan-21 1:27 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB7-Jan-21 1:35
W Balboos, GHB7-Jan-21 1:35 
GeneralRe: The Decline and Fall of Search Engines Pin
Member 133016797-Jan-21 19:56
Member 133016797-Jan-21 19:56 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB8-Jan-21 3:58
W Balboos, GHB8-Jan-21 3:58 
GeneralRe: The Decline and Fall of Search Engines Pin
Member 133016798-Jan-21 7:19
Member 133016798-Jan-21 7:19 
Quote:
First of all, we talking about sorting - so what bugs are you talking about?


Using FP for currencies is a bug.

Quote:

1 - Store as integers and divide by 100 (for US$, at least) - so it's back to FP arithmetic


That's not how it is done. No FP is used other than for display.

Quote:
2 - Store as string values -


That's also not how it's done. Currencies have to be stored as a fixed-numeric type.

Quote:
As for your original premise? Bugs? NOT! Round-off errors due to their representation in memory is something a REAL programmer keeps in mind.


Software in banking systems have to be certified (I write EMV and related software, including all the other card processing on the back ends), and the software does not get certified if you are using FP for currencies. They call it a Bug. An Error. A Defect.

Whenever you are dealing with currency, using FP for it is a bug. You could have spent 2m on google finding this out.

Look at all the standards that have to be adhered to for banking and currency software - currencies are specified in specified fixed-numeric types. See all the ISO standards that banking and transaction interchange are written to: No FP.

But, hey, as a "REAL" programmer maybe you should go tell all these institutions and regulators why FP is not a Bug. After all, I've only been employed as a programmer for 25 years, writing interbank switching software and transaction processing software; what could I possibly know about the datatype of currencies.

Sh*t, even the PostgreSQL (or MySQL, or MSSQL, I forget which) manual warns not to store currency as floating point types. Of course, I'm sure a REAL programmer like yourself read the SQL rationale for the NUMERIC type, right?

I mean you wouldn't be posting so arrogantly if you had known about the existence of DECIMAL in the SQL ANSI standard, and why they put it in? Right?
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB8-Jan-21 7:59
W Balboos, GHB8-Jan-21 7:59 
GeneralRe: The Decline and Fall of Search Engines Pin
Member 133016798-Jan-21 8:44
Member 133016798-Jan-21 8:44 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB8-Jan-21 9:16
W Balboos, GHB8-Jan-21 9:16 
GeneralRe: The Decline and Fall of Search Engines Pin
Member 133016798-Jan-21 9:42
Member 133016798-Jan-21 9:42 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB11-Jan-21 3:04
W Balboos, GHB11-Jan-21 3:04 
GeneralRe: The Decline and Fall of Search Engines Pin
Daniel Will9-Jan-21 4:30
Daniel Will9-Jan-21 4:30 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB11-Jan-21 2:34
W Balboos, GHB11-Jan-21 2:34 
GeneralRe: The Decline and Fall of Search Engines Pin
Frank Malcolm8-Jan-21 10:40
Frank Malcolm8-Jan-21 10:40 
GeneralRe: The Decline and Fall of Search Engines Pin
Member 133016798-Jan-21 11:16
Member 133016798-Jan-21 11:16 
GeneralRe: The Decline and Fall of Search Engines Pin
Frank Malcolm8-Jan-21 15:17
Frank Malcolm8-Jan-21 15:17 
GeneralRe: The Decline and Fall of Search Engines Pin
Member 133016799-Jan-21 0:04
Member 133016799-Jan-21 0:04 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB10-Jan-21 2:43
W Balboos, GHB10-Jan-21 2:43 
GeneralRe: The Decline and Fall of Search Engines Pin
StarNamer@work21-Jan-21 4:36
professionalStarNamer@work21-Jan-21 4:36 
GeneralRe: The Decline and Fall of Search Engines Pin
Member 132567508-Jan-21 5:25
Member 132567508-Jan-21 5:25 
GeneralRe: The Decline and Fall of Search Engines Pin
20212a7-Jan-21 1:46
20212a7-Jan-21 1:46 
GeneralRe: The Decline and Fall of Search Engines Pin
W Balboos, GHB7-Jan-21 1:49
W Balboos, GHB7-Jan-21 1:49 
GeneralRe: The Decline and Fall of Search Engines Pin
Daniel Pfeffer7-Jan-21 3:41
professionalDaniel Pfeffer7-Jan-21 3:41 

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.