Click here to Skip to main content
15,886,873 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: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon20-Mar-24 16:55
professionalJeremy Falcon20-Mar-24 16:55 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Mircea Neacsu20-Mar-24 16:59
Mircea Neacsu20-Mar-24 16:59 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon20-Mar-24 17:03
professionalJeremy Falcon20-Mar-24 17:03 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Mircea Neacsu20-Mar-24 17:05
Mircea Neacsu20-Mar-24 17:05 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon20-Mar-24 17:08
professionalJeremy Falcon20-Mar-24 17:08 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Mircea Neacsu20-Mar-24 17:30
Mircea Neacsu20-Mar-24 17:30 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon20-Mar-24 18:54
professionalJeremy Falcon20-Mar-24 18:54 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Andre_Prellwitz24-Mar-24 20:35
Andre_Prellwitz24-Mar-24 20:35 
Thousands of calculations per second still shouldn't take any time. Come back when you're talking billions and we can start to use SIMD or even WebGPU to do some heavy lifting.

Meanwhile you need to ask stakeholders when the rounding may happen. It's pretty standard that individual transactions have tax rounded, for example, and it must stay consistent. There are multiple strategies for rounding, including even or odd rounding, and it shouldn't be chosen at random. Don't forgo correctness because of some desire for speed that's ill-placed.
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon26-Mar-24 10:39
professionalJeremy Falcon26-Mar-24 10:39 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
jmaida20-Mar-24 17:33
jmaida20-Mar-24 17:33 
AnswerRe: What's y'all's favorite way of dealing with floating point precision? Pin
Amarnath S20-Mar-24 18:13
professionalAmarnath S20-Mar-24 18:13 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Daniel Pfeffer20-Mar-24 18:55
professionalDaniel Pfeffer20-Mar-24 18:55 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
jmaida21-Mar-24 14:51
jmaida21-Mar-24 14:51 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon20-Mar-24 19:00
professionalJeremy Falcon20-Mar-24 19:00 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
bjongejan22-Mar-24 3:11
bjongejan22-Mar-24 3:11 
AnswerRe: What's y'all's favorite way of dealing with floating point precision? Pin
Daniel Pfeffer20-Mar-24 18:53
professionalDaniel Pfeffer20-Mar-24 18:53 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon20-Mar-24 18:56
professionalJeremy Falcon20-Mar-24 18:56 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jörgen Andersson20-Mar-24 21:40
professionalJörgen Andersson20-Mar-24 21:40 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon21-Mar-24 5:00
professionalJeremy Falcon21-Mar-24 5:00 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jörgen Andersson22-Mar-24 1:48
professionalJörgen Andersson22-Mar-24 1:48 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
jmaida21-Mar-24 11:15
jmaida21-Mar-24 11:15 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
jschell21-Mar-24 16:30
jschell21-Mar-24 16:30 
AnswerRe: What's y'all's favorite way of dealing with floating point precision? Pin
Sander Rossel20-Mar-24 22:35
professionalSander Rossel20-Mar-24 22:35 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Jeremy Falcon21-Mar-24 5:06
professionalJeremy Falcon21-Mar-24 5:06 
GeneralRe: What's y'all's favorite way of dealing with floating point precision? Pin
Sander Rossel21-Mar-24 5:54
professionalSander Rossel21-Mar-24 5:54 

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.