Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use math.Round for rounding in RoundToInt32 #297

Merged
merged 1 commit into from
Nov 27, 2023

Commits on Nov 24, 2023

  1. Use math.Round for rounding in RoundToInt32

    ... instead of re-implementing it (with side-effects).
    
    Since RoundToInt32 ends up being a type-casting wrapper around
    math.Round, deprecate it in favour of the latter.
    
    Signed-off-by: Stephen Kitt <skitt@redhat.com>
    skitt committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    fc7c3d4 View commit details
    Browse the repository at this point in the history