Skip to content

Single.BitDecrement description incorrect/misleading #11310

New issue

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

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

Already on GitHub? # to your account

Open
Jijjy opened this issue May 17, 2025 · 0 comments · May be fixed by #11315
Open

Single.BitDecrement description incorrect/misleading #11310

Jijjy opened this issue May 17, 2025 · 0 comments · May be fixed by #11315
Labels
untriaged New issue has not been triaged by the area owner

Comments

@Jijjy
Copy link

Jijjy commented May 17, 2025

Type of issue

Typo

Description

Description currently reads "Decrements a value to the smallest value that compares less than a given value."

This function actually returns the largest value that is less than the given value.

Math.BitDecrement appears correct. Single.BitDecrement and Double.BitDecrement should be updated to match.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.single.bitdecrement?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/Single.xml

Document Version Independent Id

cba54f64-e641-f29c-0542-b63fdde257a2

Platform Id

87850f26-4a3a-e8a1-f54b-f1c02f3aaa3f

Article author

@dotnet-bot

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label May 17, 2025
@rzikm rzikm linked a pull request May 19, 2025 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant