Skip to content

Add more explanation for banker's rounding in AboutNumbers #352

Description

@vexx32

Describe "Koan(s) You Suggest"

The banker's rounding example is effective but lacking an explanation as to why that is the default behaviour. It's ultimately PowerShell following .NET's defined defaults there, but deserves an explanation as to why that may have been chosen as the default.

Context "The Scope of the Koans You Suggest"

We'd need to add a few additional comments to this section explaining the rationale behind Banker's rounding and why it exists. It may also be worth showing folx how to round in different ways.

https://github.com/vexx32/PSKoans/blob/c4502019ccd1d35028beab30897c3afada00a9cf/PSKoans/Koans/Introduction/AboutNumbers.Koans.ps1#L61-L73

Context "Additional Information"

https://twitter.com/jschpp/status/1221810270210809858

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions