# Truncating values

**URL:** <https://forum.radzen.com/t/truncating-values/21415>\
**Category:** Radzen Blazor Studio\
**Created:** [March 2, 2026, 8:42pm UTC](https://forum.radzen.com/t/truncating-values/21415 "2026-03-02T20:42:31Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 2, 2026, 8:42pm UTC](https://forum.radzen.com/t/truncating-values/21415/1 "2026-03-02T20:42:31Z")

</div>

Hi

I have a little problem. I have used CRUD and in the database the four values that start with SRS are defined

```auto
[SRS] [numeric](4, 3) NULL,
[SRSWithOutHeadSail] [numeric](4, 3) NULL,
[SRSSH] [numeric](4, 3) NULL,
[SRSSHWithOutHeadSail] [numeric](4, 3) NULL,

```

When i store 1,001 it will be stored a 1,00 so the last digit is truncated. I have debuged and I can’t find what’s wrong

 ![image](https://forum.radzen.com/uploads/default/original/3X/1/2/12dcae8e0229e8e1b5594ad67a26a7d75c08a8e1.png)

Is you can see that other boats have the right numbers, they are create with a stored procedure.

 ![image](https://forum.radzen.com/uploads/default/original/3X/a/7/a7747f1f3423ac729b3077eab47c8b41e9173230.png)

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 3, 2026, 6:13am UTC](https://forum.radzen.com/t/truncating-values/21415/2 "2026-03-03T06:13:49Z")

</div>

Can you post the DbContext how HasPrecision() is defined for these properties and if they are mapped to decimal type in the model?

---

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 3, 2026, 7:39am UTC](https://forum.radzen.com/t/truncating-values/21415/3 "2026-03-03T07:39:18Z")

</div>

[SailItV2DBContext.zip](https://forum.radzen.com/uploads/short-url/bQJKm3vbngwp8NmDtRE7hvzrhmS.zip) (1.2 KB)

Cant find HasPrecision in this file.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 3, 2026, 7:45am UTC](https://forum.radzen.com/t/truncating-values/21415/4 "2026-03-03T07:45:53Z")

</div>

What version of RBS you have used to generate this DbContext?

---

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 3, 2026, 7:54am UTC](https://forum.radzen.com/t/truncating-values/21415/5 "2026-03-03T07:54:43Z")

</div>

Radzen Blazor Studie 1.61.0

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 3, 2026, 7:57am UTC](https://forum.radzen.com/t/truncating-values/21415/6 "2026-03-03T07:57:23Z")

</div>

What type is your database? Can you verify also if the mapped property is double or decimal?

---

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 3, 2026, 8:42am UTC](https://forum.radzen.com/t/truncating-values/21415/7 "2026-03-03T08:42:14Z")

</div>

Hi

SqlServer on Azure and the data type is decimal(4,3)

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 3, 2026, 8:43am UTC](https://forum.radzen.com/t/truncating-values/21415/8 "2026-03-03T08:43:12Z")

</div>

I’m asking the for the type of the C# property in your scaffolded model.

---

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 3, 2026, 8:44am UTC](https://forum.radzen.com/t/truncating-values/21415/9 "2026-03-03T08:44:30Z")

</div>

```auto
    public decimal? SRS { get; set; }

    public decimal? SRSWithOutHeadSail { get; set; }

    public decimal? SRSSH { get; set; }

    public decimal? SRSSHWithOutHeadSail { get; set; }

```

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 3, 2026, 8:46am UTC](https://forum.radzen.com/t/truncating-values/21415/10 "2026-03-03T08:46:57Z")

</div>

Unfortuantely we cannot tell why there is no HasPrecision() genertated for these properties in the DbContext from the information provided so far. We will need your database schema (just schema, no data) in order to debug locally our scaffolding. Please zip and send the schema to [info@radzen.com](mailto:info@radzen.com).

---

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 3, 2026, 8:47am UTC](https://forum.radzen.com/t/truncating-values/21415/11 "2026-03-03T08:47:50Z")

</div>

Ok will do that in a moment

---

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 3, 2026, 8:58am UTC](https://forum.radzen.com/t/truncating-values/21415/12 "2026-03-03T08:58:01Z")

</div>

[TotScript.zip](https://forum.radzen.com/uploads/short-url/vGrd2rsevvxrNVnyyKPJFNrgNVM.zip) (3.0 KB)

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 3, 2026, 9:33am UTC](https://forum.radzen.com/t/truncating-values/21415/13 "2026-03-03T09:33:17Z")

</div>

We were able to identify and fix the problem - the fix will be part of our next update later the week!

---

<div class="post-metadata">

**Author:** ![VictorW60](https://forum.radzen.com/letter_avatar_proxy/v4/letter/v/8491ac/32.png) [@VictorW60](https://forum.radzen.com/u/VictorW60)\
**Post date:** [March 3, 2026, 9:46am UTC](https://forum.radzen.com/t/truncating-values/21415/14 "2026-03-03T09:46:55Z")

</div>

Ok, thanks for that, when will the next version be ready

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 3, 2026, 10:22am UTC](https://forum.radzen.com/t/truncating-values/21415/15 "2026-03-03T10:22:42Z")

</div>

Before the end of the week.
