Skip to content

The INumber<T>.Sign method states the wrong return type for zero. #11207

Open
@Cbrt74088

Description

@Cbrt74088

Type of issue

Typo

Description

The documentation for the INumber<T>.Sign method states that, if the value is zero, it returns INumberBase<TSelf>.Zero,
but this is not true. It returns 0 (Int32).

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.numerics.inumber-1.sign?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Numerics/INumber`1.xml

Document Version Independent Id

08c9282d-7ee5-24b4-c3ad-27bf88718e15

Platform Id

6f757961-432c-9e5c-bb36-7c56c3b31c95

Article author

@dotnet-bot

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions