markjprice / cs11dotnet7

Repository for the Packt Publishing book titled "C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
566 stars 206 forks source link

IsNan instead of IsNaN #53

Closed GoPapaSmurf closed 1 year ago

GoPapaSmurf commented 1 year ago

Hello,

On p.75, section "Chapter 2 - Speaking C# → Working with variables → Storing real numbers → Comparing double and decimal types", in the last paragraph, there is a spelling mistake, it is written IsNan instead of IsNaN:

They also have methods for checking for these special values like IsInfinity and IsNan.

markjprice commented 1 year ago

Thanks! I have added an errata item for this issue: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-75---comparing-double-and-decimal-types