Skip to content

Commit

Permalink
Adjust CRL numeric type -> dBASE field length mappings.
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaSzostak committed Jun 30, 2024
1 parent 791cb04 commit 9a9c0ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace NetTopologySuite.IO.Esri.Dbf.Fields
/// </summary>
public class DbfNumericDoubleField : DbfNumericField<double>
{
internal static readonly int DefaultFieldLength = 15; // https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/floating-point-numeric-types#characteristics-of-the-floating-point-types
internal static readonly int DefaultFieldLength = 19; // 17 digits + decimal separator + sign https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/floating-point-numeric-types#characteristics-of-the-floating-point-types

/// <summary>
/// Intializes new instance of the numerif field class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace NetTopologySuite.IO.Esri.Dbf.Fields
/// </summary>
public class DbfNumericInt32Field : DbfNumericField<int>
{
internal static readonly int DefaultFieldLength = 9; //-2147483648..2147483647 (11..10 digits)
internal static readonly int DefaultFieldLength = 10; //-2147483648..2147483647 (11..10 digits)

/// <summary>
/// Intializes new instance of the numerif field class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace NetTopologySuite.IO.Esri.Dbf.Fields
/// </summary>
public class DbfNumericInt64Field : DbfNumericField<long>
{
internal static readonly int DefaultFieldLength = 18; // -9223372036854775808 to 9223372036854775807 (20..19 digits)
internal static readonly int DefaultFieldLength = 19; // -9223372036854775808 to 9223372036854775807 (20..19 digits)

/// <summary>
/// Intializes new instance of the numerif field class.
Expand Down

0 comments on commit 9a9c0ee

Please sign in to comment.