Skip to content

Single.BitDecrement description incorrect/misleading #11310

Closed
@Jijjy

Description

@Jijjy

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions