Decimal (3,1) showing 2 Decimal Places! RRS feed

  • Question

  • User-895481597 posted

    Hi there,

    I am reasonably new to C# and building ASP.NET Core so I hope this is an OK place to land this - I simply have set a field in my table to Decimal (3,1). It shows correctly to one decimal place in that table in SQL Server Management Studio and I even added a property :

    [Column(TypeName = "decimal(3,1)")]

    However when I load through ISS Express the field is setting to 2 decimal places. Does anybody know why?

    Table showing 2 decimal places

    Table in SSMS

    Thanks, James

    Thursday, March 26, 2020 6:49 PM

All replies