Click here to Skip to main content
15,887,027 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: Infinite numbers are strange Pin
jschell6-Nov-23 11:41
jschell6-Nov-23 11:41 
GeneralRe: Infinite numbers are strange Pin
pkfox3-Nov-23 23:17
professionalpkfox3-Nov-23 23:17 
GeneralRe: Infinite numbers are strange Pin
Amarnath S4-Nov-23 0:01
professionalAmarnath S4-Nov-23 0:01 
GeneralRe: Infinite numbers are strange Pin
pkfox4-Nov-23 0:45
professionalpkfox4-Nov-23 0:45 
GeneralRe: Infinite numbers are strange Pin
Sander Rossel4-Nov-23 3:48
professionalSander Rossel4-Nov-23 3:48 
GeneralRe: Infinite numbers are strange Pin
englebart4-Nov-23 4:28
professionalenglebart4-Nov-23 4:28 
GeneralRe: Infinite numbers are strange Pin
Daniel Pfeffer4-Nov-23 11:47
professionalDaniel Pfeffer4-Nov-23 11:47 
GeneralRe: Infinite numbers are strange Pin
jschell6-Nov-23 11:50
jschell6-Nov-23 11:50 
Daniel Pfeffer wrote:
Bank accounts use "round to nearest or away", where fractional cents are rounded to the nearest value (up or down)


I couldn't find any regulation that specifies how banks round numbers.

And given 'banks' exist throughout the world I suspect certainly in some places rounding might use different rules.

I worked for a financial company (not a bank) and the rounding was decided by me.

There are multiple rules.

Last time I looked (and can recall) there are three different types of rounding suited to financial transactions. Rather than scientific. Although one of those might also be scientific.

Two of them provide 'better' results than just rounding up on '0.5' otherwise down. Which I suspect you are referring to. That specific method tends to favor a specific result. Because there are 6 digits from 5-9 but only 4 from 0-4.
GeneralRe: Infinite numbers are strange Pin
Daniel Pfeffer6-Nov-23 14:49
professionalDaniel Pfeffer6-Nov-23 14:49 
GeneralRe: Infinite numbers are strange Pin
jschell7-Nov-23 5:14
jschell7-Nov-23 5:14 
GeneralRe: Infinite numbers are strange Pin
Eddy Vluggen4-Nov-23 4:48
professionalEddy Vluggen4-Nov-23 4:48 
GeneralRe: Infinite numbers are strange Pin
honey the codewitch4-Nov-23 5:28
mvahoney the codewitch4-Nov-23 5:28 
GeneralRe: Infinite numbers are strange Pin
StarNamer@work4-Nov-23 14:54
professionalStarNamer@work4-Nov-23 14:54 
GeneralRe: Infinite numbers are strange Pin
Nelek4-Nov-23 20:55
protectorNelek4-Nov-23 20:55 
GeneralRe: Infinite numbers are strange Pin
TNCaver4-Nov-23 9:49
TNCaver4-Nov-23 9:49 
GeneralRe: Infinite numbers are strange Pin
StarNamer@work4-Nov-23 14:51
professionalStarNamer@work4-Nov-23 14:51 
GeneralRe: Infinite numbers are strange Pin
Chris Maunder4-Nov-23 9:55
cofounderChris Maunder4-Nov-23 9:55 
GeneralRe: Infinite numbers are strange Pin
StarNamer@work4-Nov-23 14:52
professionalStarNamer@work4-Nov-23 14:52 
GeneralRe: Infinite numbers are strange Pin
Nelek4-Nov-23 20:57
protectorNelek4-Nov-23 20:57 
GeneralRe: Infinite numbers are strange Pin
StarNamer@work5-Nov-23 4:55
professionalStarNamer@work5-Nov-23 4:55 
GeneralRe: Infinite numbers are strange Pin
jschell6-Nov-23 11:55
jschell6-Nov-23 11:55 
GeneralRe: Infinite numbers are strange Pin
Daniel Pfeffer4-Nov-23 11:50
professionalDaniel Pfeffer4-Nov-23 11:50 
GeneralRe: Infinite numbers are strange Pin
StarNamer@work4-Nov-23 14:52
professionalStarNamer@work4-Nov-23 14:52 
GeneralRe: Infinite numbers are strange Pin
StarNamer@work5-Nov-23 4:02
professionalStarNamer@work5-Nov-23 4:02 
GeneralRe: Infinite numbers are strange Pin
Kornfeld Eliyahu Peter4-Nov-23 19:59
professionalKornfeld Eliyahu Peter4-Nov-23 19:59 

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.